Using dummy URLs for the schema: value
Having trouble deploying Oxygen XML Web Author? Got a bug to report? Post it all here.
-
jsaiya
- Posts: 1
- Joined: Thu Feb 06, 2025 3:40 am
Using dummy URLs for the schema: value
In my organization, the schemas for our JSON content are not made available on an HTTP(S) host. The value we use for the `schema` property inside the JSON file is a dummy URL.
I use the "Validate with..." feature to set a schema file on my local drive, but Oxygen still tries to access a schema file at that URL.
Is there a way to configure Oxygen so that I can direct it to ignore the values of the `schema` properties?
I use the "Validate with..." feature to set a schema file on my local drive, but Oxygen still tries to access a schema file at that URL.
Is there a way to configure Oxygen so that I can direct it to ignore the values of the `schema` properties?
-
tavy
- Posts: 397
- Joined: Thu Jul 01, 2004 12:29 pm
Re: Using dummy URLs for the schema: value
Hello,
If a reference to a remote JSON schema must be used, but a local copy of the schema should be preferred for performance reasons, the reference can be resolved to the local copy using an XML Catalog. You can find more about this in our user manual:
[Read more](https://www.oxygenxml.com/doc/versions/ ... talog.html)
To add a new catalog, you can define a document type for your documents. To do this, go to Options -> Preferences -> Document Type Association, and create a document type association similar to the sample ones like Personal (Sample-JSON).
[Learn more](https://www.oxygenxml.com/doc/versions/ ... ialog.html)
Then, add a catalog to resolve the location of the schema.
[Find out how](https://www.oxygenxml.com/doc/versions/ ... s-tab.html)
You can also add a new rule in the application catalog, located in "[Oxygen installation folder]\frameworks\catalog.xml".
I have also raised an issue to allow adding a custom catalog in the Oxygen JSON Editor. This option is available in the Oxygen XML Editor and Developer but seems to be filtered in the Oxygen JSON Editor.
[See more details](https://www.oxygenxml.com/doc/versions/ ... talog.html)
Best Regards,
Octavian
If a reference to a remote JSON schema must be used, but a local copy of the schema should be preferred for performance reasons, the reference can be resolved to the local copy using an XML Catalog. You can find more about this in our user manual:
[Read more](https://www.oxygenxml.com/doc/versions/ ... talog.html)
To add a new catalog, you can define a document type for your documents. To do this, go to Options -> Preferences -> Document Type Association, and create a document type association similar to the sample ones like Personal (Sample-JSON).
[Learn more](https://www.oxygenxml.com/doc/versions/ ... ialog.html)
Then, add a catalog to resolve the location of the schema.
[Find out how](https://www.oxygenxml.com/doc/versions/ ... s-tab.html)
You can also add a new rule in the application catalog, located in "[Oxygen installation folder]\frameworks\catalog.xml".
I have also raised an issue to allow adding a custom catalog in the Oxygen JSON Editor. This option is available in the Oxygen XML Editor and Developer but seems to be filtered in the Oxygen JSON Editor.
[See more details](https://www.oxygenxml.com/doc/versions/ ... talog.html)
Best Regards,
Octavian
Octavian Nadolu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
-
florin_nica
- Posts: 41
- Joined: Wed Sep 09, 2020 3:17 pm
Re: Using dummy URLs for the schema: value
Post by florin_nica »
Hello,
Just a quick update: version 28 of the Oxygen suite (including Oxygen JSON Editor) has just been released. You can now add a custom catalog in the XML Catalog preferences page to resolve references in JSON files during validation and transformation. This helps you work with external resources even when you do not have internet access.
Read more about what’s new here: https://www.oxygenxml.com/json_editor/whats_new.html
Regards,
Florin
Just a quick update: version 28 of the Oxygen suite (including Oxygen JSON Editor) has just been released. You can now add a custom catalog in the XML Catalog preferences page to resolve references in JSON files during validation and transformation. This helps you work with external resources even when you do not have internet access.
Read more about what’s new here: https://www.oxygenxml.com/json_editor/whats_new.html
Regards,
Florin
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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