Skip to content

docs: move the examples off Flask imports #753

Closed

Description

@uniqueg

The bundled examples still import Flask (examples/petstore/controllers.py, examples/petstore-access-control/controllers.py), against the guides for writing controllers and the flask-import ast-grep rule (a warning only, so CI passes).

Move the examples to foca.context, foca.errors and problem_response, and make the rule an error for examples/**.

Activity

  1. added
    priority: low
    status: triage
    type: docs
    workload: hours
    status: in progress
    and removed
    status: triage
    on Nov 9, 2026
  2. self-assigned this
    on Nov 12, 2026
  3. added this to the v0.23.0 milestone on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority: lowstatus: in progresstype: docsworkload: hours

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions