bundesAPI / bundesAPI/smard-api

Fix code generation

Open
#14 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
94
Forks
10
PR merge metrics
No merged PRs in 30d

Description

Currently the code generation fails, probably because of one of the possible region parameters ('50HERTZ') starting with a number.
![grafik](https://user-images.githubusercontent.com/16417093/194563364-1e048c2b-032e-44e9-8505-3342a5521023.png)

I don't know how to fix this without changes to the code generator or leaving out the 50HERTZ parameter in the openapi definition.
There is just a mismatch between strings that are allowed as API parameters and strings allowed as identifies (class/function ... names) in python

Contributor guide

No contributing guide indexed for this repository

Research direction

No source files or tests are named. Start by reproducing code generation with the OpenAPI region parameter "50HERTZ" and inspect how the Python generator converts API parameter values into identifiers; done means generation succeeds while preserving the valid API parameter.

Written by the indexing model from the issue text.

Assessment

Tech stack
openapi, python
Domain
api, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.