Skip to content

Commit

Permalink
Merge pull request #58 from maykinmedia/issue/fix-oas-check
Browse files Browse the repository at this point in the history
👷 [maykinmedia/open-api-framework#115] Always run OAS check
  • Loading branch information
stevenbal authored Mar 6, 2025
2 parents d95fb6b + c2f3967 commit e24518d
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 21 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/oas-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,13 @@ name: check-oas

on:
push:
paths:
- "src/referentielijsten/api/openapi.yaml"
- ".github/workflows/oas-check.yml"
branches:
- '**'
workflow_dispatch:

jobs:
open-api-workflow-check-oas:
uses: maykinmedia/open-api-workflows/.github/workflows/oas-check.yml@v1
uses: maykinmedia/open-api-workflows/.github/workflows/oas-check.yml@v5.0.0
with:
python-version: '3.11'

schema-path: 'src/referentielijsten/api/openapi.yaml'

schema-options: 'src/referentielijsten/api/openapi.yaml'
django-settings-module: 'referentielijsten.conf.ci'
5 changes: 4 additions & 1 deletion bin/generate_schema.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@
#
# Run this script from the root of the repository

src/manage.py spectacular --file src/referentielijsten/api/openapi.yaml --validate
src/manage.py spectacular \
--file src/referentielijsten/api/openapi.yaml \
--validate \
--lang="nl-nl"
12 changes: 0 additions & 12 deletions src/referentielijsten/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,18 +93,6 @@ components:
schemas:
Beheerder:
type: object
description: |-
Generate a serializer out of a GegevensGroepType.
Usage::
>>> class VerlengingSerializer(GegevensGroepSerializer):
... class Meta:
... model = Zaak
... gegevensgroep = 'verlenging'
>>>
Where ``Zaak.verlenging`` is a :class:``GegevensGroepType``.
properties:
naam:
type: string
Expand Down
8 changes: 8 additions & 0 deletions src/referentielijsten/conf/locale/nl/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -280,3 +280,11 @@ msgstr "Ongeldige postcode."
#: referentielijsten/utils/validators.py:32
msgid "Invalid mobile phonenumber."
msgstr "Ongeldig mobiel telefoonnumer."

#: conf/base.py:200
msgid "A page number within the paginated result set."
msgstr "Een pagina binnen de gepagineerde set resultaten."

#: conf/base.py:201
msgid "Number of results to return per page."
msgstr "Het aantal resultaten terug te geven per pagina."

0 comments on commit e24518d

Please sign in to comment.