Closed jechterhoff closed 8 months ago
A good place for this could be https://register.geostandaarden.nl/, which is a domain owned by Geonovum where we publish all kinds of technical files belonging to standards. We have to figure out what the path should be, happy to get suggestions for this. @PalmJanssen do you agree?
Also we have to figure out how to set up the mime type correctly and if we can do that on the hosting web server (I don't know what is running there).
Seems a good idea. @lvdbrink How to proceed?
If @jechterhoff can clarify for us what are the requirements for hosting the file, we can check with tech support if they can accomodate that.
@lvdbrink The JSON Schema file(s) should be publicly available, and served with mime type application/schema+json
, even if the file extension is .json
.
Waiting for @fterpstra who I asked if we could host this on register.geostandaarden.
I can answer the question. Yes we can host it on register.geostandaarden.nl and yes it is possible to serve a specific mime type for a specific version.
@wilkoquak Perfect. If you can publish https://github.com/Geonovum/uml2json/blob/main/schemas/schema_definitions.json somewhere on register.geostandaarden.nl then, we can get rid of the https://FIXME/schema_definitions.json URLs in that file and the specification. Please publish the schema definitions file at a path of your choosing, let me know the URL, and please switch the value of the $id-member in the file to that URL.
I moved the schema to: https://register.geostandaarden.nl/jsonschema/uml2json/0.1/schema_definitions.json . I am not 100% sure the mime-type is set correctly that needs some more work. According to curl the content-type is application/schema+json so it seems to work
Closed as completed
As part of our specification, we decided to create a JSON Schema file with relevant definitions (e.g., for our version of a link object, as well as a measure). In order for that file to be usable by JSON Schema validators, it needs to be published on the web, and served with suitable content type. Can you set up a web server, where the json file is served with mime type
application/schema+json
?Today, I've successfully tested such a setup with a local Tomcat server. It looks like the Apache HTTP Server can also be configured accordingly (haven't tested this yet).
The location of the published JSON Schema file may change during the OGC process for our document. An according note will be added in the specification. In any case, having a URL that works for the schema would be a good first step, that's why I'm asking. If hosting the file is not possible for you, we might use https://shapechange.net to publish the file instead. However, a URL that belongs to Geonovum would be preferable.