1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-08-05 21:45:25 +02:00

Added validators for users and recipes (#1052)

* Added validators for users and recipes

provide a simple get api, allowing to test for existence of
- user by username
- recipe by slug
- group by name (not tested yet)

* updated formatting

* Use group_id+slug for recipes, use ValidationRespone

* Fixed Flake8 errors and warnings

* add missing field for TestUser init
This commit is contained in:
Matthias Bilger 2022-03-15 23:28:42 +01:00 committed by GitHub
parent c8c02036a3
commit e109391e9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 129 additions and 2 deletions

View file

@ -1,2 +1,3 @@
# GENERATED CODE - DO NOT MODIFY BY HAND
from .responses import *
from .validation import *

View file

@ -0,0 +1,5 @@
from pydantic import BaseModel
class ValidationResponse(BaseModel):
valid: bool = False