-
Notifications
You must be signed in to change notification settings - Fork 221
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
Missing type
properties in some Entities
#1738
Comments
Thanks for reporting this, already on top of it (for Go/Java) could you have a look at PHP with the fix present in #1739 please? |
I think the PR doesn't solve this: Here's the openAPI spec snippet. There's already a
|
Ah thanks for the précision. I didn't get that. So would you argue that we should strip the prefix but only clean the special characters? |
I think we should only clean special characters and not strip the prefix. Stripping the prefix may mean we have to check if the property already exists and de-dupe names. |
I think such duplicates would only apply in OData to OpenAPI scenarios Otherwise, I think "traditional" openAPI should take care of duplicate property names from the yml/json validation |
Makes sense. I'll add that to my pull request tomorrow. @darrelmiller any objections? (currently @odata.type gets converted to type for the code symbol and that creates conflicts if the schema already describes a type property) |
We currently clean properties with the
@odata.
prefix by dropping the prefix e.g.@odata.type
becomestype
.A derived type's
type
property will NOT be added to the model since it's parent already contains a property namedtype
(odata type)Example: microsoftgraph/msgraph-sdk-dotnet@00ffddc#diff-6a2934f9f1e41fcb43a8a28293569fd779095ce3bc9ff09b9f91a1f6ef22d0cdL99-L102
or check SubjectRightsRequest history
Proposed fix:
Doing away with stripping prefixes but instead only replace special characters & camel case?
The text was updated successfully, but these errors were encountered: