GoToSocial/vendor/github.com/go-openapi/validate
tobi fd8a724e77
[chore] Bump go swagger (#2871)
* bump go swagger version

* bump swagger version
2024-04-26 11:31:10 +02:00
..
.editorconfig [bugfix] Fix Swagger spec and add test script (#2698) 2024-03-06 18:05:45 +01:00
.gitattributes [bugfix] Fix Swagger spec and add test script (#2698) 2024-03-06 18:05:45 +01:00
.gitignore [bugfix] Fix Swagger spec and add test script (#2698) 2024-03-06 18:05:45 +01:00
.golangci.yml [chore] Bump go swagger (#2871) 2024-04-26 11:31:10 +02:00
BENCHMARK.md [chore] Bump go swagger (#2871) 2024-04-26 11:31:10 +02:00
CODE_OF_CONDUCT.md [bugfix] Fix Swagger spec and add test script (#2698) 2024-03-06 18:05:45 +01:00
LICENSE [bugfix] Fix Swagger spec and add test script (#2698) 2024-03-06 18:05:45 +01:00
README.md [chore] Bump go swagger (#2871) 2024-04-26 11:31:10 +02:00
context.go [bugfix] Fix Swagger spec and add test script (#2698) 2024-03-06 18:05:45 +01:00
debug.go [bugfix] Fix Swagger spec and add test script (#2698) 2024-03-06 18:05:45 +01:00
default_validator.go [chore] Bump go swagger (#2871) 2024-04-26 11:31:10 +02:00
doc.go [chore] Bump go swagger (#2871) 2024-04-26 11:31:10 +02:00
example_validator.go [chore] Bump go swagger (#2871) 2024-04-26 11:31:10 +02:00
formats.go [chore] Bump go swagger (#2871) 2024-04-26 11:31:10 +02:00
helpers.go [chore] Bump go swagger (#2871) 2024-04-26 11:31:10 +02:00
object_validator.go [chore] Bump go swagger (#2871) 2024-04-26 11:31:10 +02:00
options.go [chore] Bump go swagger (#2871) 2024-04-26 11:31:10 +02:00
pools.go [chore] Bump go swagger (#2871) 2024-04-26 11:31:10 +02:00
pools_debug.go [chore] Bump go swagger (#2871) 2024-04-26 11:31:10 +02:00
result.go [chore] Bump go swagger (#2871) 2024-04-26 11:31:10 +02:00
rexp.go [bugfix] Fix Swagger spec and add test script (#2698) 2024-03-06 18:05:45 +01:00
schema.go [chore] Bump go swagger (#2871) 2024-04-26 11:31:10 +02:00
schema_messages.go [bugfix] Fix Swagger spec and add test script (#2698) 2024-03-06 18:05:45 +01:00
schema_option.go [chore] Bump go swagger (#2871) 2024-04-26 11:31:10 +02:00
schema_props.go [chore] Bump go swagger (#2871) 2024-04-26 11:31:10 +02:00
slice_validator.go [chore] Bump go swagger (#2871) 2024-04-26 11:31:10 +02:00
spec.go [chore] Bump go swagger (#2871) 2024-04-26 11:31:10 +02:00
spec_messages.go [chore] Bump go swagger (#2871) 2024-04-26 11:31:10 +02:00
type.go [chore] Bump go swagger (#2871) 2024-04-26 11:31:10 +02:00
update-fixtures.sh [bugfix] Fix Swagger spec and add test script (#2698) 2024-03-06 18:05:45 +01:00
validator.go [chore] Bump go swagger (#2871) 2024-04-26 11:31:10 +02:00
values.go [chore] Bump go swagger (#2871) 2024-04-26 11:31:10 +02:00

README.md

Validation helpers Build Status codecov

Slack Status license Go Reference Go Report Card

This package provides helpers to validate Swagger 2.0. specification (aka OpenAPI 2.0).

Reference can be found here: https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md.

What's inside?

  • A validator for Swagger specifications
  • A validator for JSON schemas draft4
  • Helper functions to validate individual values (used by code generated by go-swagger).
    • Required, RequiredNumber, RequiredString
    • ReadOnly
    • UniqueItems, MaxItems, MinItems
    • Enum, EnumCase
    • Pattern, MinLength, MaxLength
    • Minimum, Maximum, MultipleOf
    • FormatOf

Documentation

FAQ

  • Does this library support OpenAPI 3?

No. This package currently only supports OpenAPI 2.0 (aka Swagger 2.0). There is no plan to make it evolve toward supporting OpenAPI 3.x. This discussion thread relates the full story.

An early attempt to support Swagger 3 may be found at: https://github.com/go-openapi/spec3