Skip to content
Discussion options

You must be logged in to vote

Hi Hendrik Wunderlich (@wunderlichh)

Thank you for using the SDK and for reaching out.

It really depends on your use case, and the additional context from the code.

Essentially:

  • If you use OpenApiSchemaReference, you'll get a $ref at the root, and some of the properties are settable (based on the JSON schema semantics)
  • if you use OpenApiSchema, all properties are settable, and the properties that are of type IOpenApiSchema, can either take a schema, or a schema reference, depending on your use case.

Let me know if you have any additional comments or questions.

Replies: 1 comment

Comment options

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