Skip to content

ObjectModel

Darrel edited this page Jun 27, 2021 · 4 revisions

Introduction

The object model in OpenAPI.NET works a little differently than many other .NET implementations of document parsers. The object model is not designed so that an automatic deserializer like Newtonsoft.JSON can simply transpose the JSON document into an equivalent .NET object graph. This library uses a set of "readers" to translate JSON/YAML into an OpenAPI document object model. This allows us to have one single DOM for all combinations of format and version of an OpenAPI document. The readers take care of translating a down-rev version into the most recent DOM. The object model classes know how to write out different versions of OpenAPI descriptions.

Construction

References

  • Unresolved references vs resolved references.
  • Inlining references
  • Local vs External references

Extensions

Clone this wiki locally