-
Notifications
You must be signed in to change notification settings - Fork 255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NullPointerException when generating TS29598_Nudsf_DataRepository as go-gin-server #46
Comments
I believe the responses are the problem:
If I swap the above lines in a limited example with a another schema, for example like this:
Then it works. |
If I further swap
with
It works. But only in my limited example. Not the full spec. Please excuse my stumbling forward. |
hi @DonRichie; thanks for reporting the issue. the "swaps" you have done above, are not really valid, since you cannot simply replace the former is a reference to an entire re-usable response component, while the latter is simply a reference to a given schema component, and both are entirely different. the reusable response component is defined as: content:
multipart/mixed:
schema:
$ref: '#/components/schemas/Record'
encoding:
meta: # The meta part shall be the first part and is mandatory but can be empty.
contentType: application/json
headers:
Content-Id: # The meta part is identified by the 'meta' Content-Id header.
schema:
type: string
required: true
blocks: # Zero or more block parts may follow the meta part
contentType: '*/*' # Block parts can be of any type.
headers:
Content-Id: # Block identifier is defined by the Content-Id header.
schema:
type: string
required: true
Content-Transfer-Encoding:
schema:
type: string
required: true
headers:
Cache-Control:
$ref: '#/components/headers/Cache-Control'
ETag:
$ref: '#/components/headers/ETag'
Last-Modified:
$ref: '#/components/headers/Last-Modified' so, it seems to me that openpi-generator does not handle well any of those definitions above. maybe one way of narrowing-down the issue could be to replace |
Hello,
I am trying to generate server boilerplate code of the TS29598_Nudsf_DataRepository.yaml. Unfortunately I get a NullPointerException when doing so.
I want to generate as go-gin-server, but python-flask did produce the same error.
Generating the TS29598_Nudsf_Timer.yaml works, but the DataRepostory doesn't.
Does someone know why this Error happens and is able to fix it?
Command:
Error:
The text was updated successfully, but these errors were encountered: