Skip to content

Commit

Permalink
Merge pull request #4 from bundesAPI/fix-schema
Browse files Browse the repository at this point in the history
Fix schema
  • Loading branch information
wirthual authored Mar 14, 2024
2 parents e0082c5 + 33ac8f7 commit afd0a2d
Show file tree
Hide file tree
Showing 84 changed files with 2,941 additions and 789 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/deutschland_generator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ['3.7.8' ]
python-version: ['3.11.1' ]
steps:
- uses: actions/checkout@v2

Expand All @@ -15,10 +15,9 @@ jobs:
continue-on-error: true
run: |
set -C; echo "extends: spectral:oas" > .spectral.yaml
# Runs a single command using the runners shell
- name: "Lint file"
uses: stoplightio/spectral-action@v0.8.1
uses: stoplightio/spectral-action@latest
with:
file_glob: "openapi.yaml"

Expand All @@ -31,4 +30,4 @@ jobs:
upload-to-testpypi: false
pypi-token: ${{ secrets.PYPI_PRODUCTION }}
testpypi-token: ${{ secrets.PYPI_TEST }}
python-version: ${{ matrix.python-version }}
python-version: ${{ matrix.python-version }}
2 changes: 1 addition & 1 deletion generator_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ additionalProperties:
packageName: "mudab"
infoName: "BundesAPI"
infoEmail: "[email protected]"
packageVersion: 0.1.0
packageVersion: 0.2.0
packageUrl: "https://github.com/bundesAPI/mudab-api"
namespace: "deutschland"
docLanguage: "de"
Expand Down
15 changes: 8 additions & 7 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -254,12 +254,12 @@ paths:
type: object
properties:
V_GEMESSENE_PARA_PLC:
type: array
items:
$ref: '#/components/schemas/ParameterPLC'
type: array
items:
$ref: '#/components/schemas/ParameterPLC'

/V_MESSWERTE_PLC:
post:
post:

Check warning on line 262 in openapi.yaml

View workflow job for this annotation

GitHub Actions / Lint (push)

operation-tags

Operation must have non-empty "tags" array.
operationId: list-messwerte-plc
summary: Liste aller Messwerte der gefilterten PLC Stationen
description: |
Expand All @@ -279,9 +279,9 @@ paths:
type: object
properties:
V_MESSWERTE_PLC:
type: array
items:
$ref: '#/components/schemas/MesswertPLC'
type: array
items:
$ref: '#/components/schemas/MesswertPLC'

components:
schemas:
Expand Down Expand Up @@ -536,3 +536,4 @@ components:
- CW
- CS
- CF

66 changes: 39 additions & 27 deletions python-client/.openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,22 @@ docs/Filter.md
docs/FilterAction.md
docs/FilterRequest.md
docs/HelcomPLCStation.md
docs/InlineResponse200.md
docs/InlineResponse2001.md
docs/InlineResponse2002.md
docs/InlineResponse2003.md
docs/InlineResponse2004.md
docs/InlineResponse2005.md
docs/InlineResponse2006.md
docs/InlineResponse2007.md
docs/InlineResponse2008.md
docs/ListMessStationen200Response.md
docs/ListMesswertePlc200Response.md
docs/ListParameter200Response.md
docs/ListParameterValues200Response.md
docs/ListParametersBiologie200Response.md
docs/ListParametersBiota200Response.md
docs/ListParametersPlc200Response.md
docs/ListParametersSediment200Response.md
docs/ListParametersWasser200Response.md
docs/ListPlcStations200Response.md
docs/ListProjektStationen200Response.md
docs/Messstation.md
docs/MesswertPLC.md
docs/Orderby.md
docs/Parameter.md
docs/ParameterPLC.md
docs/ParameterValue.md
docs/ProjectStation.md
docs/Range.md
Expand All @@ -39,18 +43,22 @@ mudab/model/filter.py
mudab/model/filter_action.py
mudab/model/filter_request.py
mudab/model/helcom_plc_station.py
mudab/model/inline_response200.py
mudab/model/inline_response2001.py
mudab/model/inline_response2002.py
mudab/model/inline_response2003.py
mudab/model/inline_response2004.py
mudab/model/inline_response2005.py
mudab/model/inline_response2006.py
mudab/model/inline_response2007.py
mudab/model/inline_response2008.py
mudab/model/list_mess_stationen200_response.py
mudab/model/list_messwerte_plc200_response.py
mudab/model/list_parameter200_response.py
mudab/model/list_parameter_values200_response.py
mudab/model/list_parameters_biologie200_response.py
mudab/model/list_parameters_biota200_response.py
mudab/model/list_parameters_plc200_response.py
mudab/model/list_parameters_sediment200_response.py
mudab/model/list_parameters_wasser200_response.py
mudab/model/list_plc_stations200_response.py
mudab/model/list_projekt_stationen200_response.py
mudab/model/messstation.py
mudab/model/messwert_plc.py
mudab/model/orderby.py
mudab/model/parameter.py
mudab/model/parameter_plc.py
mudab/model/parameter_value.py
mudab/model/project_station.py
mudab/model/range.py
Expand All @@ -71,18 +79,22 @@ test/test_filter.py
test/test_filter_action.py
test/test_filter_request.py
test/test_helcom_plc_station.py
test/test_inline_response200.py
test/test_inline_response2001.py
test/test_inline_response2002.py
test/test_inline_response2003.py
test/test_inline_response2004.py
test/test_inline_response2005.py
test/test_inline_response2006.py
test/test_inline_response2007.py
test/test_inline_response2008.py
test/test_list_mess_stationen200_response.py
test/test_list_messwerte_plc200_response.py
test/test_list_parameter200_response.py
test/test_list_parameter_values200_response.py
test/test_list_parameters_biologie200_response.py
test/test_list_parameters_biota200_response.py
test/test_list_parameters_plc200_response.py
test/test_list_parameters_sediment200_response.py
test/test_list_parameters_wasser200_response.py
test/test_list_plc_stations200_response.py
test/test_list_projekt_stationen200_response.py
test/test_messstation.py
test/test_messwert_plc.py
test/test_orderby.py
test/test_parameter.py
test/test_parameter_plc.py
test/test_parameter_value.py
test/test_project_station.py
test/test_range.py
Expand Down
2 changes: 1 addition & 1 deletion python-client/.openapi-generator/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6.0.0-SNAPSHOT
6.1.0
46 changes: 27 additions & 19 deletions python-client/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Meeres-Monitoringdaten von Küstenbundesländern und Forschungseinrichtungen
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:

- API version: 1.0.0
- Package version: 0.1.0
- Package version: 0.2.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen

## Requirements.
Expand Down Expand Up @@ -52,15 +52,17 @@ from deutschland import mudab
from pprint import pprint
from deutschland.mudab.api import default_api
from deutschland.mudab.model.filter_request import FilterRequest
from deutschland.mudab.model.inline_response200 import InlineResponse200
from deutschland.mudab.model.inline_response2001 import InlineResponse2001
from deutschland.mudab.model.inline_response2002 import InlineResponse2002
from deutschland.mudab.model.inline_response2003 import InlineResponse2003
from deutschland.mudab.model.inline_response2004 import InlineResponse2004
from deutschland.mudab.model.inline_response2005 import InlineResponse2005
from deutschland.mudab.model.inline_response2006 import InlineResponse2006
from deutschland.mudab.model.inline_response2007 import InlineResponse2007
from deutschland.mudab.model.inline_response2008 import InlineResponse2008
from deutschland.mudab.model.list_mess_stationen200_response import ListMessStationen200Response
from deutschland.mudab.model.list_messwerte_plc200_response import ListMesswertePlc200Response
from deutschland.mudab.model.list_parameter200_response import ListParameter200Response
from deutschland.mudab.model.list_parameter_values200_response import ListParameterValues200Response
from deutschland.mudab.model.list_parameters_biologie200_response import ListParametersBiologie200Response
from deutschland.mudab.model.list_parameters_biota200_response import ListParametersBiota200Response
from deutschland.mudab.model.list_parameters_plc200_response import ListParametersPlc200Response
from deutschland.mudab.model.list_parameters_sediment200_response import ListParametersSediment200Response
from deutschland.mudab.model.list_parameters_wasser200_response import ListParametersWasser200Response
from deutschland.mudab.model.list_plc_stations200_response import ListPlcStations200Response
from deutschland.mudab.model.list_projekt_stationen200_response import ListProjektStationen200Response
# Defining the host is optional and defaults to https://geoportal.bafg.de/MUDABAnwendung/rest/BaseController/FilterElements
# See configuration.py for a list of all supported configuration parameters.
configuration = mudab.Configuration(
Expand Down Expand Up @@ -111,10 +113,12 @@ All URIs are relative to *https://geoportal.bafg.de/MUDABAnwendung/rest/BaseCont
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
*DefaultApi* | [**list_mess_stationen**](docs/DefaultApi.md#list_mess_stationen) | **POST** /STATION_SMALL | Liste aller Messstationen
*DefaultApi* | [**list_messwerte_plc**](docs/DefaultApi.md#list_messwerte_plc) | **POST** /V_MESSWERTE_PLC | Liste aller Messwerte der gefilterten PLC Stationen
*DefaultApi* | [**list_parameter**](docs/DefaultApi.md#list_parameter) | **POST** /MV_PARAMETER | Liste aller Parameter
*DefaultApi* | [**list_parameter_values**](docs/DefaultApi.md#list_parameter_values) | **POST** /MV_STATION_MSMNT | Liste aller Messwerte
*DefaultApi* | [**list_parameters_biologie**](docs/DefaultApi.md#list_parameters_biologie) | **POST** /MV_PARAMETER_BIOLOGIE | Liste aller Parameter im Biologie Kompartiment
*DefaultApi* | [**list_parameters_biota**](docs/DefaultApi.md#list_parameters_biota) | **POST** /MV_PARAMETER_BIOTA | Liste aller Parameter im Biota Kompartiment
*DefaultApi* | [**list_parameters_plc**](docs/DefaultApi.md#list_parameters_plc) | **POST** /V_GEMESSENE_PARA_PLC | Liste aller Parameter der PLC Stationen
*DefaultApi* | [**list_parameters_sediment**](docs/DefaultApi.md#list_parameters_sediment) | **POST** /MV_PARAMETER_SEDIMENT | Liste aller Parameter im Sediment Kompartiment
*DefaultApi* | [**list_parameters_wasser**](docs/DefaultApi.md#list_parameters_wasser) | **POST** /MV_PARAMETER_WASSER | Liste aller Parameter im Wasser Kompartiment
*DefaultApi* | [**list_plc_stations**](docs/DefaultApi.md#list_plc_stations) | **POST** /V_PLC_STATION | Liste aller HELCOM PLC Stationen
Expand All @@ -128,18 +132,22 @@ Class | Method | HTTP request | Description
- [FilterAction](docs/FilterAction.md)
- [FilterRequest](docs/FilterRequest.md)
- [HelcomPLCStation](docs/HelcomPLCStation.md)
- [InlineResponse200](docs/InlineResponse200.md)
- [InlineResponse2001](docs/InlineResponse2001.md)
- [InlineResponse2002](docs/InlineResponse2002.md)
- [InlineResponse2003](docs/InlineResponse2003.md)
- [InlineResponse2004](docs/InlineResponse2004.md)
- [InlineResponse2005](docs/InlineResponse2005.md)
- [InlineResponse2006](docs/InlineResponse2006.md)
- [InlineResponse2007](docs/InlineResponse2007.md)
- [InlineResponse2008](docs/InlineResponse2008.md)
- [ListMessStationen200Response](docs/ListMessStationen200Response.md)
- [ListMesswertePlc200Response](docs/ListMesswertePlc200Response.md)
- [ListParameter200Response](docs/ListParameter200Response.md)
- [ListParameterValues200Response](docs/ListParameterValues200Response.md)
- [ListParametersBiologie200Response](docs/ListParametersBiologie200Response.md)
- [ListParametersBiota200Response](docs/ListParametersBiota200Response.md)
- [ListParametersPlc200Response](docs/ListParametersPlc200Response.md)
- [ListParametersSediment200Response](docs/ListParametersSediment200Response.md)
- [ListParametersWasser200Response](docs/ListParametersWasser200Response.md)
- [ListPlcStations200Response](docs/ListPlcStations200Response.md)
- [ListProjektStationen200Response](docs/ListProjektStationen200Response.md)
- [Messstation](docs/Messstation.md)
- [MesswertPLC](docs/MesswertPLC.md)
- [Orderby](docs/Orderby.md)
- [Parameter](docs/Parameter.md)
- [ParameterPLC](docs/ParameterPLC.md)
- [ParameterValue](docs/ParameterValue.md)
- [ProjectStation](docs/ProjectStation.md)
- [Range](docs/Range.md)
Expand Down
2 changes: 1 addition & 1 deletion python-client/deutschland/mudab/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"""


__version__ = "0.1.0"
__version__ = "0.2.0"

# import ApiClient
from deutschland.mudab.api_client import ApiClient
Expand Down
Loading

0 comments on commit afd0a2d

Please sign in to comment.