openapi

module
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2024 License: MIT

README

OpenAPI v3.1 Specification

Code Analysis Go Reference codecov GitHub tag (latest SemVer)

The implementation of OpenAPI v3.1 Specification for Go using generics.

Supported Go versions:

  • v1.22
  • v1.21
  • v1.20
  • v1.19
  • v1.18

Features

  • The spec folder contains full implementation of the v3.1 Specification using generics, so the minimum supported version of Go is v1.18.
  • The validate folder uses jsonschema/v5 with draft 2020-12 to validate the specifications.
  • The official v3.0 and v3.1 examples are tested. In most cases v3.0 specification can be converted to v3.1 by changing the version's parameter only.
    @@ -1,4 +1,4 @@
    -openapi: "3.0.0"
    +openapi: "3.1.0"
    

NOTE: The descriptions of most structures and their fields are taken from the official documentations.

License

MIT licensed. See the bundled LICENSE file for more details.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL