Closed joanma747 closed 3 years ago
This is what we agreed to use.
"propertiesSchema" :
{
"type": "object",
"properties" :
{
"F_CODE" :
{
"title" : "Feature Code",
"type" : "string",
"enum" : [ "EA010", "EA040", "AM020" ]
},
"FFN" : { "type" : "integer" },
"FCSUBTYPE" :
{
"title" : "Feature subtype",
"type" : "integer",
"enum" : [ 100380, 100384 ]
},
"ZI005_FNA" : { "type" : "string" }
}
}
Solution has been applied to the JSON schemas using the meta-schema for JSON and in section 9 (JSON encoding) there is a table mapping the UML class with the JSON schema tags.. Since this was presented yesterday (2021-02-11) and there was no objection, I'm closing the issue
In JSON encodings proposed by Jerome
In my opinion it should be better to have a "schemas" : { } (exactly as OpenAPI)
The content of "schemas" is under discussion. One alternative could be to have a a full GeoJSON schema personalized to the feature types. These mean, defining a geometry and a property sections and setting the geometry to a single geomentry (e.g. LineString) and the properties to the actual property names and types.