mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-19 13:35:40 +00:00
add simplify rules
This commit is contained in:
.github/scripts
docs
pyproject.tomlsrc/backend/InvenTree
InvenTree
admin.pyapi.pycontext.pyconversion.pyexceptions.pyexchange.pyfields.pyfilters.pyformat.pyhelpers.pyhelpers_model.pymetadata.pymodels.pyready.pyserializers.pysettings.py
management
commands
templatetags
views.pycommon
company
generic
states
importer
order
part
plugin
script
stock
users
@ -54,9 +54,7 @@ def top_level_path(path: str) -> str:
|
||||
|
||||
def generate_schema_file(key: str) -> None:
|
||||
"""Generate a schema file for the provided key."""
|
||||
description = (
|
||||
SPECIAL_PATHS[key] if key in SPECIAL_PATHS else 'General API Endpoints'
|
||||
)
|
||||
description = SPECIAL_PATHS.get(key, 'General API Endpoints')
|
||||
|
||||
output = f"""
|
||||
---
|
||||
|
Reference in New Issue
Block a user