chore: update openapi (#488)

This commit is contained in:
Jeffrey Smith II 2023-04-03 16:20:33 -04:00 committed by GitHub
parent 88517ea782
commit 02a094a4b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

@ -1 +1 @@
Subproject commit 76ede4fadc8ab793585252b59149f9e46bf67feb
Subproject commit d3b3ce0177924a98bd85673b402c450d86dd04e3

View File

@ -21,6 +21,7 @@ type ErrorCode string
// List of ErrorCode
const (
ERRORCODE_INTERNAL_ERROR ErrorCode = "internal error"
ERRORCODE_NOT_IMPLEMENTED ErrorCode = "not implemented"
ERRORCODE_NOT_FOUND ErrorCode = "not found"
ERRORCODE_CONFLICT ErrorCode = "conflict"
ERRORCODE_INVALID ErrorCode = "invalid"
@ -36,7 +37,7 @@ const (
)
func ErrorCodeValues() []ErrorCode {
return []ErrorCode{"internal error", "not found", "conflict", "invalid", "unprocessable entity", "empty value", "unavailable", "forbidden", "too many requests", "unauthorized", "method not allowed", "request too large", "unsupported media type"}
return []ErrorCode{"internal error", "not implemented", "not found", "conflict", "invalid", "unprocessable entity", "empty value", "unavailable", "forbidden", "too many requests", "unauthorized", "method not allowed", "request too large", "unsupported media type"}
}
func (v *ErrorCode) UnmarshalJSON(src []byte) error {
@ -46,7 +47,7 @@ func (v *ErrorCode) UnmarshalJSON(src []byte) error {
return err
}
enumTypeValue := ErrorCode(value)
for _, existing := range []ErrorCode{"internal error", "not found", "conflict", "invalid", "unprocessable entity", "empty value", "unavailable", "forbidden", "too many requests", "unauthorized", "method not allowed", "request too large", "unsupported media type"} {
for _, existing := range []ErrorCode{"internal error", "not implemented", "not found", "conflict", "invalid", "unprocessable entity", "empty value", "unavailable", "forbidden", "too many requests", "unauthorized", "method not allowed", "request too large", "unsupported media type"} {
if existing == enumTypeValue {
*v = enumTypeValue
return nil