Comments (5)
Try type: ['string', 'null']
in the disabled_at property
from janephp.
Yup, that works, thanks again for your quick response!
from janephp.
I'm sorry, but I have to reopen the issue; at least inform you about the following:
from janephp.
Yes it works because it's based on json spec, and OpenAPI differ here, the only way to do this with OpenAPI (v2) is to use "oneof", however i'm not sure this will work.
You can also set the strict option to false for the Jane generator, and it will consider that every properties can be nullable
from janephp.
We added nullable
support since 4.4.0
, check #87 for implementation details (for OpenAPI 2.x) and it's also supported on master branch (PR #84) for OpenApi 3.x 😉
from janephp.
Related Issues (20)
- Classes referenced as strings instead of via ::class
- Missing "default" response models when using "whitelisted-paths"
- Empty String for Date
- Warning: Undefined array key "" produces an Uncaught TypeError
- Content-Type `application/json;charset=UTF-8` is not serialized/deserialized as JSON
- Error in BodyParameterGenerator::convertParameterType when generating HOT 1
- PHP Warning: Undefined array key "object" in /home/xxx/projects/camunda-api-client/vendor/jane-php/open-api-3/Generator/Parameter/NonBodyParameterGenerator.php on line 197
- Bump symfony/serializer to 7.0 in jane-php/open-api-runtime HOT 1
- Consider allowing int for `number` type
- Direct dependency php-http/message-factory is abandoned HOT 2
- Bump nikic/php-parser to latest version HOT 1
- Jane 7.6.0 relies on Symfony 7.0? HOT 1
- Wrong type for array
- Endpoints uri's are not relative to the server>url
- OpenAPI 3.0 binary string format not supported properly HOT 2
- Nullable required properties during denormalization
- Config file .jane does not exist HOT 1
- Generated code is not compatible with `symfony/serializer` 7 HOT 3
- Endpoints with scalar return values have invalid return types
- JsonSchema DenormalizerGenerator does not unset data in else branch
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 janephp.