go-openapi / spec

openapi specification object model
Apache License 2.0
394 stars 100 forks source link

Add nullable #91

Closed sttts closed 5 years ago

sttts commented 5 years ago

Towards v3 support, we have to add nullable, as an alternative to the JSON-Schema inspired null type.

Note, that both are not 100% the same as type:"", nullable:true is a valid construct which cannot be faithfully represented with the null type only.

codecov[bot] commented 5 years ago

Codecov Report

Merging #91 into master will decrease coverage by 0.16%. The diff coverage is 0%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #91      +/-   ##
==========================================
- Coverage   58.63%   58.47%   -0.17%     
==========================================
  Files          22       22              
  Lines        2159     2165       +6     
==========================================
  Hits         1266     1266              
- Misses        724      730       +6     
  Partials      169      169
Impacted Files Coverage Δ
items.go 51.96% <0%> (-1.58%) :arrow_down:
schema.go 27.5% <0%> (-0.32%) :arrow_down:

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 9d9763c...915f417. Read the comment docs.