Documentation ¶
Index ¶
- Constants
- func BasicallyValidateSwagger(data []byte) (*spec.Swagger, error)
- func ValidateOAS2(data []byte, protocol string) (swagger *openapi3.Swagger, err error)
- func ValidateOAS3(data []byte, protocol string) (oas3 *openapi3.Swagger, err error)
- func ValidateOpenapi(data []byte) (*openapi3.Swagger, error)
Constants ¶
View Source
const ( OAS2JSON = "oas2-json" OAS2YAML = "oas2-yaml" OAS3YAML = "oas3-yaml" OAS3JSON = "oas3-json" )
Variables ¶
This section is empty.
Functions ¶
func BasicallyValidateSwagger ¶
对 swagger 合法性进行基础性校验
func ValidateOAS2 ¶
校验 swagger 2.x 格式合法性
func ValidateOAS3 ¶
校验 openapi 3 合法性
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.