yashodhan
6 years agoNew Contributor
OAS3,Composition for models not working as result example value getting wrong
Hello @All, I am facing issue in composition of model classes where some classes not gets serialized.please help me out.
Follwing is the Situation:
One of the endpoint is returning the "A" response example value as expected:
Expected Result:
----------------------------
"A":{
x:int,
"b":{
y:int,
"c":{
p:int,
q:string,
}
}
}
Actual Result:
----------------------
"A":{
x:int,
"b":{
y:int
}
}
Note:C model class not getting
Models:
-------------
Class A{
int x;
B b;
}
class B {
String y;
C c;
}
class c
{
int p;
String q;
}