Skip to content

Meta-Defining JSON Schema inside of an openAPI spec (Version 3.0.2) #3302

Closed Answered by jdesrosiers
GeraldIr asked this question in Q&A
Discussion options

You must be logged in to vote

Firstly, is the json_schema object not a schema object and therefore has to follow the guidelines outlined here https://spec.openapis.org/oas/v3.0.2#schema-object disallowing certain properties (such as $id)?

That schema doesn't use $id or $schema as a keyword. Those are property names.

{
  "$id": "..." // <= This is a keyword and would not be allowed
  "properties": {
    "$id": { // <= This is just a property name. It just happens to be spelled the same as the keyword.
    } 
  }
}

Secondly, the "/collections/{collection_id}/queryables" is the only endpoint with application/schema+json mimetype, but the json_schema is referenced in way more endpoints than that one.

Yes, other resour…

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@GeraldIr
Comment options

@jdesrosiers
Comment options

Answer selected by GeraldIr
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants