-
-
Notifications
You must be signed in to change notification settings - Fork 767
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* init api check test * Fix openAPI issues Co-authored-by: Hayden <[email protected]>
- Loading branch information
1 parent
505e594
commit 34cd6eb
Showing
8 changed files
with
113 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,11 +82,13 @@ def getter_dict(cls, name_orm: User): | |
} | ||
|
||
schema_extra = { | ||
"username": "ChangeMe", | ||
"fullName": "Change Me", | ||
"email": "[email protected]", | ||
"group": settings.DEFAULT_GROUP, | ||
"admin": "false", | ||
"example": { | ||
"username": "ChangeMe", | ||
"fullName": "Change Me", | ||
"email": "[email protected]", | ||
"group": settings.DEFAULT_GROUP, | ||
"admin": "false", | ||
} | ||
} | ||
|
||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
from openapi_spec_validator import validate_v3_spec | ||
|
||
from mealie.app import app | ||
|
||
|
||
def test_validate_open_api_spec(): | ||
open_api = app.openapi() | ||
validate_v3_spec(open_api) |