We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae98e32 commit 9ac9a28Copy full SHA for 9ac9a28
Components/JSON/BEXIS.JSON.Helpers/MetadataStructureConverter.cs
@@ -378,7 +378,10 @@ private bool IsChoice(XmlNode xmlNode)
378
379
private JSchemaType GetJSchemaType(BaseUsage usage)
380
{
381
- if(IsChoice(usage.Extra))
+ // if choice and max cardinality >1 then array
382
+ if (IsChoice(usage.Extra) && getMaxCardinality(usage) > 1)
383
+ return JSchemaType.Array;
384
+ else if (IsChoice(usage.Extra))
385
return JSchemaType.Object;
386
else if (getMaxCardinality(usage) > 1)
387
return JSchemaType.Array;
0 commit comments