Skip to content

Fix schema flattener to support list-type type field introduced in OpenAPI 3.1 #321

Fix schema flattener to support list-type type field introduced in OpenAPI 3.1

Fix schema flattener to support list-type type field introduced in OpenAPI 3.1 #321

Workflow file for this run

name: flask-rebar Pull Request Tests
on:
- pull_request
jobs:
tests:
name: Testing on Python ${{ matrix.python }}
runs-on: ubuntu-latest
strategy:
max-parallel: 20
fail-fast: false
matrix:
python:
- 3.8
- 3.9
- "3.10"
- 3.11
marshmallow:
- marshmallow==3.17.*
- marshmallow==3.18.*
- marshmallow>3.18.0
flask:
- flask=='2.2.*' werkzeug=='2.2.*'
- flask=='2.3.*' werkzeug=='2.3.*'
- flask=='3.0.*' werkzeug=='3.0.*'
steps:
- uses: actions/checkout@v3
- name: Set up Python:${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: "Test with ${{matrix.libraries}}"
run: |
python -m pip install -U pip
python -m pip install '.[dev,enum]' ${{matrix.flask}} ${{matrix.marshmallow}}
python -m pip freeze
- name: Run Tests
run: |
python -m pytest -v -ra --junitxml=pytest.xml
- name: Publish Test Report
uses: mikepenz/action-junit-report@v3
if: always()
with:
report_paths: pytest.xml
check_name: "JUnit Report python${{matrix.python}} ${{matrix.marshmallow}} ${{matrix.flask}}"
formatter:
name: Format using Black
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: "Install dependencies"
run: |
python -m pip install -U pip
python -m pip install '.[dev]'
python -m pip freeze
- name: Run black
run: |
python -m black --check --diff .
- name: Run flake8
run: |
python -m flake8 .