-2
I would like to create a JSON like this (this is only a part), I always create the object with the value, but I can’t do it this way using the 200
as an object:
path.get.response = new Object()
path.get.response.200 = new Object()
"responses": {
"200": {
"description": "Operação realizada com sucesso!",
"content": {
"application/json": {
"schema": {
....
path.get.response.["200"] = new Object()
– Isac
@Interesting Isac, this way you convert 200 to string right? Only later to access this object is only that way also right?
path.get.response.["200"]
– Eduardo Ribeiro
Yes, however I made a mistake and put a
.
the more. It’s justpath.get.response["200"]
– Isac
didn’t work that way friends...
– i9on i9on