Skip to content

Commit

Permalink
Swagger-UI (PoC) implement schema
Browse files Browse the repository at this point in the history
  • Loading branch information
zmsdev committed Jun 29, 2023
1 parent 895d5bb commit d7ecbb8
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions Products/zms/zpt/ZMS/openapi_yaml.zpt
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,29 @@ components:
schemas:
<tal:block tal:repeat="metaObjId python:here.getMetaobjIds(sort=True)"><tal:block tal:define="metaObj python:here.getMetaobj(metaObjId); metaObjAttrIds python:here.getMetaobjAttrIds(metaObjId); objAttrs python:here.getObjAttrs(metaObjId); properties python:[x for x in metaObjAttrIds if x in objAttrs];"><tal:block tal:condition="properties">
<tal:block tal:content="metaObjId">The Name:</tal:block>:
description: <tal:block tal:content="metaObj/name">the description</tal:block>
type: object
required:
- id
- uid
- meta_id
<tal:block tal:repeat="property properties"><tal:block tal:define="metaObjAttr python:here.getMetaobjAttr(metaObjId,property)"><tal:block tal:condition="metaObjAttr/mandatory">
- <tal:block tal:content="property">The Property</tal:block>
</tal:block></tal:block></tal:block>
properties:
id:
description: the id
type: string
uid:
description: the unique-id
type: string
meta_id:
description: the meta-id
type: string
<tal:block tal:repeat="property properties">
<tal:block tal:repeat="property properties"><tal:block tal:define="metaObjAttr python:here.getMetaobjAttr(metaObjId,property)">
<tal:block tal:content="property">The Property</tal:block>:
description: <tal:block tal:content="metaObjAttr/name">the description</tal:block>
type: string
</tal:block>
</tal:block></tal:block>
</tal:block></tal:block></tal:block>
</tal:block>

0 comments on commit d7ecbb8

Please sign in to comment.