You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey team,
Is it possible to load a specification that has some missing required fields. I'm getting error when I use the LoadFromData() method. I'm working in a large company with hundreds of specs. Most of them fail basic validation but I had to load the model(information like paths, descriptions) to generate docs. :/
The text was updated successfully, but these errors were encountered:
There is no way to deserialize a document that's missing required fields without failing right now.
Turning every field into omitempty to solve this is non trivial as code assumes these fields exist.
I understand there's hundred of specs (and that you're working at a large company...) but I suggest short term you write a script to edit the JSON/YAML and stub out the missing fields.
Hey team,
Is it possible to load a specification that has some missing required fields. I'm getting error when I use the LoadFromData() method. I'm working in a large company with hundreds of specs. Most of them fail basic validation but I had to load the model(information like paths, descriptions) to generate docs. :/
The text was updated successfully, but these errors were encountered: