How to edit/create a ModelProperty
value and set it in the properties of a Model
#3432
irvinesunday
started this conversation in
General
Replies: 2 comments 5 replies
-
You can call program.checker.createAndFinishType({
kind: "Model",
properties: createRekeyableMap(),
...
}) and then do the same for the properties and their values, which is going to be quite verbose |
Beta Was this translation helpful? Give feedback.
4 replies
-
Idea: What about contributing the ability to add extensions to the info object to the core OAS emitter instead, then just using that? In general you should be able to extend anything in OAS, right, so the emitter should support that. Obviously we'd need to agree a design. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have this object:
I have passed it via a custom decorator, $skill`, and annotated it over the namespace as such...
I am trying to enrich the
OpenApi
info
object via x-extensions. Since there's no direct way of setting extensions on the info object at the moment, I will pass the values to the available$info
decorator. Here's how I've done it:Question: How can I modify the ModelProperty value to be of the said contact object above and set it in the newModel properties?
The output should look like this:
Here's my failing test:
Beta Was this translation helpful? Give feedback.
All reactions