Skip to content

Commit

Permalink
test: add test for enum type checking
Browse files Browse the repository at this point in the history
  • Loading branch information
tdakkota committed Oct 5, 2024
1 parent c6b671b commit e2dc75e
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions _testdata/negative/wrong_enum_type/string_value.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"openapi": "3.0.3",
"info": {
"title": "title",
"version": "v0.1.0"
},
"paths": {
"/foo": {
"get": {
"responses": {
"200": {
"description": "User info",
"content": {
"application/json": {
"schema": {
"type": "integer",
"enum": [
"1",
"2",
"3"
]
}
}
}
}
}
}
}
}
}

0 comments on commit e2dc75e

Please sign in to comment.