go-openapi/validate
GitHub: go-openapi/validate
Stars: 144 | Forks: 55
# validate
[][test-url] [][cov-url] [][vuln-scan-url] [][codeql-url]
[][release-url] [][gocard-url] [][codefactor-url] [][license-url]
[][godoc-url] [][discord-url] [][goversion-url]  
A validator for OpenAPI v2 specifications and JSON schema draft 4.
## Announcements
Or join our Slack channel: [![slack-badge]][slack-url]
## Status
API is stable.
## Import this library in your project
go get github.com/go-openapi/validate
## Contents
This package provides helpers to validate Swagger 2.0. specification (aka OpenAPI 2.0).
* A validator for Swagger specifications
* A validator for JSON schemas draft4
* Helper functions to validate individual values (used by code generated by [go-swagger](https://github.com/go-swagger/go-swagger)).
* Required, RequiredNumber, RequiredString
* ReadOnly
* UniqueItems, MaxItems, MinItems
* Enum, EnumCase
* Pattern, MinLength, MaxLength
* Minimum, Maximum, MultipleOf
* FormatOf
### FAQ
## Change log
See
## References
## Licensing
This library ships under the [SPDX-License-Identifier: Apache-2.0](./LICENSE).
## Other documentation
## Cutting a new release
Maintainers can cut a new release by either:
* running [this workflow](https://github.com/go-openapi/validate/actions/workflows/bump-release.yml)
* or pushing a semver tag
* signed tags are preferred
* The tag message is prepended to release notes
标签:EVTX分析