How to handle an external OpenApi spec which contains a property with a '#' in the name #6732
Unanswered
andyfurniss4
asked this question in
Q&A
Replies: 1 comment 3 replies
-
Hi @andyfurniss4 Can you please share the generated code for the property declaration, the serialization and the deserialization methods? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
We are consuming an external OpenApi spec which we cannot modify. For whatever reason, this spec defines several properties that are prefixed with a hash symbol. For example:
#attrs
.Kiota seems unable to handle this and created the parent object with a property type of
UntypedNode
. We need to be able to access and use this property.Obviously C# doesn't support hashes at the start of property names but is there any customisation available in Kiota that lets you handle weirdness like this that exists in the OpenApi spec you're consuming? Ideally I'd like to map the wonky property name to something more sensible like
Attributes
.Beta Was this translation helpful? Give feedback.
All reactions