Closed rubensayshi closed 5 years ago
This is for a different spec version. in openapi 2.0 we support x-isnullable
Merging #86 into master will not change coverage. The diff coverage is
n/a
.
@@ Coverage Diff @@
## master #86 +/- ##
=======================================
Coverage 44.41% 44.41%
=======================================
Files 19 19
Lines 2058 2058
=======================================
Hits 914 914
Misses 973 973
Partials 171 171
Impacted Files | Coverage Δ | |
---|---|---|
schema.go | 26.03% <ø> (ø) |
:arrow_up: |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 5bae59e...dfeb175. Read the comment docs.
ah, so how can you add x-
properties?
VendorExtensible: VendorExtensible{Extensions: map[string]interface{}{"x-nullable": true}}
like this?
definition := getSchemaPtr()
definition.AddExtenstion("x-isnullable", true)
thx @casualjim
As per https://swagger.io/docs/specification/data-models/data-types/#nullable