Search found 10 matches

by michaelgrudgings
Mon Jan 23, 2023 5:40 pm
Forum: General XML Questions
Topic: anyOf and Capitalized Properties
Replies: 3
Views: 976

Re: anyOf and Capitalized Properties

From what I am reading here these keywords are used to combine multiple schemas, but are optional. We don't have any instances in our schema that require that level of complexity. Therefore the entire schema does not need to be wrapped in anyOf to function in my scenario. "Essentially each can ...
by michaelgrudgings
Fri Jan 20, 2023 12:26 am
Forum: General XML Questions
Topic: anyOf and Capitalized Properties
Replies: 3
Views: 976

anyOf and Capitalized Properties

When we convert an xsd into a draft 2020-12 JSON our lead Object is being wrapped in an anyOf keyword with a capitalized property, even when we deselect the "Preserve xsd Case" option? This: <xsd:element name="Transmission" type="bem:Transmission"/> Converts to this: { ...
by michaelgrudgings
Fri Dec 16, 2022 12:08 am
Forum: Common Problems
Topic: JSON to YAML Conversion
Replies: 0
Views: 729

JSON to YAML Conversion

When I convert a json in Oxygen it sets variables at column 5. But when I convert it in Swagger editor, it sets them at 7? Does anyone know why? Oxygen: InformationCategory: type: string enum: - Error - OK - Warning Swagger: InformationCategory: type: string enum: - Error - OK - Warning image.png
by michaelgrudgings
Fri Dec 09, 2022 7:54 pm
Forum: XML Schemas
Topic: XSD to JSON Conversion CamelCase
Replies: 2
Views: 1176

Re: XSD to JSON Conversion CamelCase

Much appreciated! I find it hard to believe I did not see that option when I generated the JSON. :lol:
by michaelgrudgings
Thu Dec 08, 2022 11:01 pm
Forum: XML Schemas
Topic: XSD to JSON Conversion CamelCase
Replies: 2
Views: 1176

XSD to JSON Conversion CamelCase

Is there a setting to force JSON conversions to use camel case for the elements? When I convert the XSD, the JSON holds whatever format the XSD is in? I want to always convert to camel case if possible? "PostalAddress": { "type": "object", "required": [ "...
by michaelgrudgings
Thu Nov 03, 2022 6:22 pm
Forum: XML Schemas
Topic: XSD to JSON Swagger 2.0 or open API 3.0
Replies: 7
Views: 4947

Re: XSD to JSON Swagger 2.0 or open API 3.0

We're running into an issue where when we add our openAPI 3.0 endpoint to a 2020-12 drafted JSON schema, the keywords (schema, anyOf, and defs) aren't allowed? Would anyone happen to have an example of an openAPI3.0 endpoint combined with a 2020-12 drafted JSON Schema for reference? "$defs"...
by michaelgrudgings
Wed Nov 02, 2022 11:18 pm
Forum: XML Schemas
Topic: XSD to JSON Swagger 2.0 or open API 3.0
Replies: 7
Views: 4947

Re: XSD to JSON Swagger 2.0 or open API 3.0

Thanks for the update. Excited to try it out!
by michaelgrudgings
Fri Oct 21, 2022 5:16 pm
Forum: XML Schemas
Topic: XSD to JSON Swagger 2.0 or open API 3.0
Replies: 7
Views: 4947

Re: XSD to JSON Swagger 2.0 or open API 3.0

Draft 2020-12 is not an option in my drop down. How do I add that?
by michaelgrudgings
Wed Oct 19, 2022 3:52 am
Forum: XML Schemas
Topic: XSD to JSON Swagger 2.0 or open API 3.0
Replies: 7
Views: 4947

XSD to JSON Swagger 2.0 or open API 3.0

We are converting from swagger 2.0 to open API 3.0. I can't seem to figure out how to get the XSD to JSON generator to set up the schema in 3.0. Any ideas how to do this?
by michaelgrudgings
Mon Sep 12, 2022 8:04 pm
Forum: XML Schemas
Topic: JSON Schema Wrapping enums in allOF keyword.
Replies: 2
Views: 1739

JSON Schema Wrapping enums in allOF keyword.

Why does Oxygen XML wrap all my enums in an allOf keyword? It is causing issues when we exchange data on a transactional level? The thing that’s different in the json schema is that every enum is wrapped in an “allOf”, like this: TransmissionType: allOf: - type: string - enum: - ActivesOnly - Change...