public JsonSchemaProperty?Visit(IArrayField field) { var item = Builder.Object(); foreach (var nestedField in field.Fields.ForApi(withHiddenFields)) { var childProperty = nestedField.Accept(this); if (childProperty != null) { childProperty.Description = nestedField.RawProperties.Hints; childProperty.IsRequired = nestedField.RawProperties.IsRequired; item.Properties.Add(nestedField.Name, childProperty); } } return(Builder.ArrayProperty(item)); }
public JsonSchemaProperty?Visit(IField <AssetsFieldProperties> field) { var item = schemaResolver("AssetItem", Builder.Guid()); return(Builder.ArrayProperty(item)); }
public JsonSchemaProperty?Visit(IField <TagsFieldProperties> field) { var item = schemaResolver("ReferenceItem", Builder.String()); return(Builder.ArrayProperty(item)); }
public JsonProperty Visit(IField <ReferencesFieldProperties> field) { var item = schemaResolver("ReferenceItem", Builder.Guid()); return(Builder.ArrayProperty(item)); }