Question: Setting value to Null via OpenAPI
See original GitHub issueHey! It’s me again!
Just a quick question more related to OpenAPI than your implementation. I noticed that null
is not a valid type
How do you deal with attributes that can be set to null
on update? Are they just omitted and then the code assumes that any non-required, omitted attribute should be set to null
?
That seems like a workable solution but I was wondering if you knew of a better one
thanks! michael
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
How to define a property that can be string or null in OpenAPI ...
This depends on the OpenAPI version. OpenAPI 3.1. Your example is valid in OpenAPI 3.1, which is fully compatible with JSON Schema 2020-12....
Read more >add "null value support" in spec? · Issue #229 - GitHub
I'd like to see this too. I'm trying to define a PATCH endpoint which merges incoming fields of a JSON object over the...
Read more >How to specify a property can be null or a reference
This is a real-world problem for my project: complex objects reference other objects, but in some cases, the referenced object is NULL, i.e,...
Read more >OpenAPI Specification - Version 3.0.3 - Swagger
An enumeration of string values to be used if the substitution options are from a limited set. The array SHOULD NOT be empty....
Read more >OpenAPI Specification v3.1.0 | Introduction, Definitions, & More
An enumeration of string values to be used if the substitution options are from a limited set. The array MUST NOT be empty....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
gracias sir!
i do, only because i want to be sure the issue was resolved properly.