Skip to content

Support to sync the local OpenAPI spec#70

Merged
greyli merged 2 commits intomasterfrom
sync-local-spec
Jun 20, 2021
Merged

Support to sync the local OpenAPI spec#70
greyli merged 2 commits intomasterfrom
sync-local-spec

Conversation

@greyli
Copy link
Copy Markdown
Member

@greyli greyli commented Jun 19, 2021

Example usage:

from pathlib import Path

app = APIFlask(__name__)
app.config['SYNC_LOCAL_SPEC'] = True
app.config['LOCAL_SPEC_PATH'] = Path(app.root_path) / 'openapi.json'

Checklist:

  • Add tests that demonstrate the correct behavior of the change. Tests should fail without the change.
  • Add or update relevant docs, in the docs folder and in code docstring.
  • Add an entry in CHANGES.md summarizing the change and linking to the issue and your username.
  • Add *Version changed* or *Version added* note in any relevant docs and docstring.
  • Run pytest and tox, no tests failed.

@greyli greyli added this to the 0.7.0 milestone Jun 19, 2021
@greyli greyli merged commit 8d8d55a into master Jun 20, 2021
@greyli greyli deleted the sync-local-spec branch June 20, 2021 00:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Keep the local spec in sync automatically

1 participant