question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question: Setting value to Null via OpenAPI

See original GitHub issue

Hey! 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:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
notxtcommented, Oct 2, 2018

gracias sir!

0reactions
jsdevelcommented, Oct 2, 2018

do you prefer when the reporter closes?

i do, only because i want to be sure the issue was resolved properly.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found