Validating JSON file with YAML schema
Having trouble deploying Oxygen XML Web Author? Got a bug to report? Post it all here.
-
- Posts: 1
- Joined: Fri Aug 23, 2024 12:45 pm
Validating JSON file with YAML schema
How can I validate a JSON file with a schema encoded in YAML ?If I select "validate with..." myschema.yaml" for my .json example the validator says the schema does not start with "{" which is clear....
-
- Posts: 38
- Joined: Wed Sep 09, 2020 3:17 pm
Re: Validating JSON file with YAML schema
Post by florin_nica »
Hello,
Oxygen JSON Editor does not support YAML Schema validation directly. However, you can convert your YAML Schema file to a JSON Schema file using the YAML to JSON converter in the JSON Tools menu. After conversion, you can use the resulting JSON Schema file for the "Validate with..." action. Since YAML Schema is a minor extension of JSON Schema Draft 4, the validation results should be accurate.
Regards,
Florin
Oxygen JSON Editor does not support YAML Schema validation directly. However, you can convert your YAML Schema file to a JSON Schema file using the YAML to JSON converter in the JSON Tools menu. After conversion, you can use the resulting JSON Schema file for the "Validate with..." action. Since YAML Schema is a minor extension of JSON Schema Draft 4, the validation results should be accurate.
Regards,
Florin
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service