Comments (2)
Let me know if this is something expected by the spec. If not I have a fix I could submit.
from swift-openapi-generator.
You'll need to explicitly add the petType property to all 3 schemas. Either just the property, or use an allOf of a "PetCommon" schema that only has the type and the additional pet properties.
But OpenAPI doesn't automatically add the property like this. To the generator is behaving correctly according to the OpenAPI document.
from swift-openapi-generator.
Related Issues (20)
- The output formatting of JSON encoding/decoding should be more configurable HOT 1
- HTTPBody does not conform to Decodable? HOT 2
- [Support enumUnknownDefaultCase] Is there a way to add default case for generated enums? HOT 5
- Add option to set a status code for server error / runtime error on a case by case basis HOT 1
- Generator lacks necessary write permissions HOT 5
- Sharing schemas with main application HOT 12
- Error during build: Injecting stub binary into codeless framework HOT 4
- Optimising build time HOT 4
- Different Return Types Depending on the Request Made to the /chat/completions Endpoint in the OpenAI OpenAPI HOT 4
- Mapping to an AsyncSequence without exposing the generated internal types HOT 6
- Generating Debug Output HOT 2
- How to define custom type name for inline defined type? HOT 11
- Help needed in specifying openapi spec in one package, client and server then consume this package HOT 7
- How to avoid character escaping in strings HOT 5
- Handling non-JSON payloads with asDecodedServerSentEventsWithJSONData() HOT 14
- OpenAPI schema results in errors when trying to access members in code HOT 2
- Assigning type by matching "pattern" HOT 2
- Generate enums for server variables
- ServerError's description of the underlying error (underlyingErrorDescription) can elides the error description unless it is a LocalizedError HOT 3
- Support OpenAPI Overlay files
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swift-openapi-generator.