Comments (6)
Hi @SebBehrendt
Thanks for raising this issue.
We will check and get back to you.
from basyx-java-server-sdk.
When using the JSON serialization of AAS4J, it is internally mapped to CamelCase (cf. here) which is consistent with the specification (cf. Specification of the Asset Administration Shell Part 2, p. 168).
Are you using the official SwaggerHub specifications (e.g., here) for code generation?
from basyx-java-server-sdk.
Hello,
thank you for the replies. The serialization is done correctly to CamelCase in the RestAPI. However, the openAPI-Specification (of the java-server-sdk at /v3/api-docs) denotes the enum values as fully capitalized.
In the official documentation, the Enum Values of KeyTypes are also fully capitalized (https://app.swaggerhub.com/domains/Plattform_i40/Part1-MetaModel-Schemas/V3.0.1#/components/schemas/ReferenceTypes, line 535ff). I think this is probably the reason for the capitalized values...
As far as I understand it, this should be also CamelCase as the official documentation specifies, correct?
from basyx-java-server-sdk.
Yes, this might be an issue in the OpenAPI specification. There's an official repo of IDTA for that:
https://github.com/admin-shell-io/aas-specs-api
Feel free to raise an issue there.
from basyx-java-server-sdk.
In the official documentation, the Enum Values of KeyTypes are also fully capitalized (https://app.swaggerhub.com/domains/Plattform_i40/Part1-MetaModel-Schemas/V3.0.1#/components/schemas/ReferenceTypes, line 535ff). I think this is probably the reason for the capitalized values...
I don't see capitalized values on line 535. Has this been fixed on the IDTA end? I couldn't find any related issues or PRs in https://github.com/admin-shell-io/aas-specs-api.
If this has been fixed, I assume this will end up in BaSyx in a future snapshot / release?
from basyx-java-server-sdk.
Hello,
you are correct. In the official documentation (e.g. in line 535), the enum values are correctly specified as camel case values. I think the only problem is, that the java server sdk specifies in its openAPI specification that enum values are fully capitalized (which is inconsistent with the actual API).
from basyx-java-server-sdk.
Related Issues (20)
- Multiple Repository Endpoints For Registry Integration
- GUI "Error while parsing the Submodel References!" HOT 6
- Error on starting AAS HOT 4
- Invoking /shells with invalid asset ids returns 500 HOT 3
- No 'aasx-spec' document found in .aasx HOT 6
- BaSyx AAS Environment Component - Cant´t post new SubmodelElement in existing SubmodelElementColletion HOT 8
- Improvements on BaSyx delegation feature HOT 1
- Unable to Retrieve AAS from MongoDB HOT 3
- No MQTT Events send when changing MLPs HOT 6
- No MQTT events for PUT-Requests? HOT 7
- Unable to retrieve list of AAS Identifiers from MongoDB in Discovery HOT 3
- cant connect my aasx file to the registry HOT 1
- Issue with Invokable Operation for File Input in Submodel HOT 6
- Bug: basyx.aasenvironment+MongoDB stores binaries in Memory anyways (and by extension basyx.aassubmodelregitry as well i guess) HOT 3
- Issue : Unexpected Error 500 Occurred After using Blob input HOT 1
- Discovery service startup error when starting with MongoDB instead of InMemory HOT 2
- Invoking /shells?cursor=x returns 500 HOT 2
- Invoking /shells/$reference returns 400 HOT 2
- Problem with Adding DataBridge to Docker-Compose File HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from basyx-java-server-sdk.