src/__fixtures__/json/api/schemas/organisationUnit.json

Summary

Maintainability
Test Coverage
{
    "klass": "org.hisp.dhis.organisationunit.OrganisationUnit",
    "shareable": false,
    "identifiableObject": true,
    "relativeApiEndpoint": "/organisationUnits",
    "metadata": true,
    "plural": "organisationUnits",
    "displayName": "Organisation Unit",
    "translated": true,
    "collectionName": "organisationUnits",
    "apiEndpoint": "http://localhost:8080/dhis/api/organisationUnits",
    "nameableObject": true,
    "defaultPrivate": false,
    "name": "organisationUnit",
    "namespace": "http://dhis2.org/schema/dxf/2.0",
    "href": "http://localhost:8080/dhis/api/schemas/organisationUnit",
    "singular": "organisationUnit",
    "persisted": true,
    "references": [
        "org.hisp.dhis.organisationunit.OrganisationUnitGroup",
        "org.hisp.dhis.dataset.DataSet",
        "org.hisp.dhis.user.User",
        "org.hisp.dhis.legend.LegendSet",
        "org.hisp.dhis.program.Program",
        "org.hisp.dhis.organisationunit.OrganisationUnit"
    ],
    "authorities": [
        {
            "type": "CREATE",
            "authorities": ["F_ORGANISATIONUNIT_ADD"]
        },
        {
            "type": "DELETE",
            "authorities": ["F_ORGANISATIONUNIT_DELETE"]
        }
    ],
    "properties": [
        {
            "relativeApiEndpoint": "/organisationUnits",
            "fieldName": "parent",
            "simple": false,
            "required": false,
            "writable": true,
            "nameableObject": true,
            "klass": "org.hisp.dhis.organisationunit.OrganisationUnit",
            "propertyType": "REFERENCE",
            "oneToOne": false,
            "attribute": false,
            "href": "http://localhost:8080/dhis/api/schemas/organisationUnit",
            "owner": true,
            "readable": true,
            "identifiableObject": true,
            "cascade": "none",
            "manyToMany": false,
            "length": 255,
            "collection": false,
            "owningRole": "org.hisp.dhis.organisationunit.OrganisationUnit.parent",
            "apiEndpoint": "http://localhost:8080/dhis/api/organisationUnits",
            "unique": false,
            "name": "parent",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": true,
            "constants": []
        },
        {
            "fieldName": "aggregationType",
            "simple": true,
            "required": false,
            "writable": true,
            "nameableObject": false,
            "klass": "org.hisp.dhis.analytics.AggregationType",
            "propertyType": "CONSTANT",
            "oneToOne": false,
            "attribute": false,
            "owner": false,
            "readable": true,
            "identifiableObject": false,
            "manyToMany": false,
            "collection": false,
            "unique": false,
            "name": "aggregationType",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": false,
            "manyToOne": false,
            "constants": [
                "SUM",
                "AVERAGE",
                "AVERAGE_SUM_ORG_UNIT",
                "COUNT",
                "STDDEV",
                "VARIANCE",
                "MIN",
                "MAX",
                "NONE",
                "DEFAULT",
                "CUSTOM",
                "AVERAGE_SUM_INT",
                "AVERAGE_SUM_INT_DISAGGREGATION",
                "AVERAGE_INT",
                "AVERAGE_INT_DISAGGREGATION",
                "AVERAGE_BOOL"
            ]
        },
        {
            "fieldName": "dimensionType",
            "simple": true,
            "required": false,
            "writable": true,
            "nameableObject": false,
            "klass": "org.hisp.dhis.common.DimensionType",
            "propertyType": "CONSTANT",
            "oneToOne": false,
            "attribute": false,
            "owner": false,
            "readable": true,
            "identifiableObject": false,
            "manyToMany": false,
            "collection": false,
            "unique": false,
            "name": "dimensionType",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": false,
            "manyToOne": false,
            "constants": [
                "DATA_X",
                "PROGRAM_DATAELEMENT",
                "PROGRAM_ATTRIBUTE",
                "PROGRAM_INDICATOR",
                "DATA_COLLAPSED",
                "CATEGORY_OPTION_COMBO",
                "ATTRIBUTE_OPTION_COMBO",
                "PERIOD",
                "ORGANISATIONUNIT",
                "CATEGORYOPTION_GROUPSET",
                "DATAELEMENT_GROUPSET",
                "ORGANISATIONUNIT_GROUPSET",
                "CATEGORY",
                "STATIC"
            ]
        },
        {
            "fieldName": "code",
            "description": "The unique code for this Object.",
            "simple": true,
            "required": false,
            "writable": true,
            "min": 0,
            "nameableObject": false,
            "klass": "java.lang.String",
            "propertyType": "IDENTIFIER",
            "oneToOne": false,
            "attribute": true,
            "owner": true,
            "readable": true,
            "identifiableObject": false,
            "max": 50,
            "cascade": "none",
            "manyToMany": false,
            "length": 50,
            "collection": false,
            "unique": true,
            "name": "code",
            "persisted": true,
            "manyToOne": false,
            "constants": []
        },
        {
            "fieldName": "access",
            "simple": false,
            "required": false,
            "writable": true,
            "min": 0,
            "nameableObject": false,
            "klass": "org.hisp.dhis.security.acl.Access",
            "propertyType": "COMPLEX",
            "oneToOne": false,
            "attribute": false,
            "owner": false,
            "readable": true,
            "identifiableObject": false,
            "max": 2147483647,
            "manyToMany": false,
            "collection": false,
            "unique": false,
            "name": "access",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": false,
            "manyToOne": false,
            "constants": []
        },
        {
            "fieldName": "displayName",
            "simple": true,
            "required": false,
            "writable": true,
            "min": 0,
            "nameableObject": false,
            "klass": "java.lang.String",
            "propertyType": "TEXT",
            "oneToOne": false,
            "attribute": false,
            "owner": false,
            "readable": true,
            "identifiableObject": false,
            "max": 2147483647,
            "manyToMany": false,
            "collection": false,
            "unique": false,
            "name": "displayName",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": false,
            "manyToOne": false,
            "constants": []
        },
        {
            "fieldName": "publicAccess",
            "simple": true,
            "required": false,
            "writable": true,
            "min": 8,
            "nameableObject": false,
            "klass": "java.lang.String",
            "propertyType": "TEXT",
            "oneToOne": false,
            "attribute": false,
            "owner": false,
            "readable": true,
            "identifiableObject": false,
            "max": 8,
            "manyToMany": false,
            "collection": false,
            "unique": false,
            "name": "publicAccess",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": false,
            "manyToOne": false,
            "constants": []
        },
        {
            "fieldName": "description",
            "simple": true,
            "required": false,
            "writable": true,
            "min": 1,
            "nameableObject": false,
            "klass": "java.lang.String",
            "propertyType": "TEXT",
            "oneToOne": false,
            "attribute": false,
            "owner": true,
            "readable": true,
            "identifiableObject": false,
            "max": 2147483647,
            "cascade": "none",
            "manyToMany": false,
            "length": 2147483647,
            "collection": false,
            "unique": false,
            "name": "description",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": false,
            "constants": []
        },
        {
            "fieldName": "contactPerson",
            "simple": true,
            "required": false,
            "writable": true,
            "min": 0,
            "nameableObject": false,
            "klass": "java.lang.String",
            "propertyType": "TEXT",
            "oneToOne": false,
            "attribute": false,
            "owner": true,
            "readable": true,
            "identifiableObject": false,
            "max": 255,
            "cascade": "none",
            "manyToMany": false,
            "length": 255,
            "collection": false,
            "unique": false,
            "name": "contactPerson",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": false,
            "constants": []
        },
        {
            "fieldName": "type",
            "simple": true,
            "required": false,
            "writable": true,
            "min": 0,
            "nameableObject": false,
            "klass": "java.lang.String",
            "propertyType": "TEXT",
            "oneToOne": false,
            "attribute": false,
            "owner": false,
            "readable": true,
            "identifiableObject": false,
            "max": 2147483647,
            "manyToMany": false,
            "collection": false,
            "unique": false,
            "name": "type",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": false,
            "manyToOne": false,
            "constants": []
        },
        {
            "fieldName": "uuid",
            "simple": true,
            "required": false,
            "writable": true,
            "min": 36,
            "nameableObject": false,
            "klass": "java.lang.String",
            "propertyType": "TEXT",
            "oneToOne": false,
            "attribute": true,
            "owner": true,
            "readable": true,
            "identifiableObject": false,
            "max": 36,
            "cascade": "none",
            "manyToMany": false,
            "length": 36,
            "collection": false,
            "unique": true,
            "name": "uuid",
            "persisted": true,
            "manyToOne": false,
            "constants": []
        },
        {
            "fieldName": "displayShortName",
            "simple": true,
            "required": false,
            "writable": true,
            "min": 0,
            "nameableObject": false,
            "klass": "java.lang.String",
            "propertyType": "TEXT",
            "oneToOne": false,
            "attribute": false,
            "owner": false,
            "readable": true,
            "identifiableObject": false,
            "max": 2147483647,
            "manyToMany": false,
            "collection": false,
            "unique": false,
            "name": "displayShortName",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": false,
            "manyToOne": false,
            "constants": []
        },
        {
            "fieldName": "externalAccess",
            "simple": true,
            "required": false,
            "writable": true,
            "nameableObject": false,
            "klass": "java.lang.Boolean",
            "propertyType": "BOOLEAN",
            "oneToOne": false,
            "attribute": false,
            "owner": false,
            "readable": true,
            "identifiableObject": false,
            "manyToMany": false,
            "collection": false,
            "unique": false,
            "name": "externalAccess",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": false,
            "manyToOne": false,
            "constants": []
        },
        {
            "fieldName": "path",
            "simple": true,
            "required": false,
            "writable": true,
            "min": 0,
            "nameableObject": false,
            "klass": "java.lang.String",
            "propertyType": "TEXT",
            "oneToOne": false,
            "attribute": false,
            "owner": true,
            "readable": true,
            "identifiableObject": false,
            "max": 255,
            "cascade": "none",
            "manyToMany": false,
            "length": 255,
            "collection": false,
            "unique": true,
            "name": "path",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": false,
            "constants": []
        },
        {
            "fieldName": "lastUpdated",
            "description": "The date this object was last updated.",
            "simple": true,
            "required": false,
            "writable": true,
            "nameableObject": false,
            "klass": "java.util.Date",
            "propertyType": "DATE",
            "oneToOne": false,
            "attribute": true,
            "owner": true,
            "readable": true,
            "identifiableObject": false,
            "cascade": "none",
            "manyToMany": false,
            "length": 255,
            "collection": false,
            "unique": false,
            "name": "lastUpdated",
            "persisted": true,
            "manyToOne": false,
            "constants": []
        },
        {
            "relativeApiEndpoint": "/organisationUnits",
            "fieldName": "children",
            "simple": false,
            "required": false,
            "writable": true,
            "collectionName": "children",
            "min": 0,
            "nameableObject": true,
            "klass": "java.util.Set",
            "propertyType": "COLLECTION",
            "oneToOne": false,
            "attribute": false,
            "href": "http://localhost:8080/dhis/api/schemas/organisationUnit",
            "owner": false,
            "readable": true,
            "identifiableObject": true,
            "max": 2147483647,
            "cascade": "none",
            "manyToMany": false,
            "collection": true,
            "itemPropertyType": "REFERENCE",
            "collectionWrapping": true,
            "itemKlass": "org.hisp.dhis.organisationunit.OrganisationUnit",
            "inverseRole": "org.hisp.dhis.organisationunit.OrganisationUnit.children",
            "apiEndpoint": "http://localhost:8080/dhis/api/organisationUnits",
            "unique": false,
            "name": "child",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": false,
            "constants": []
        },
        {
            "fieldName": "featureType",
            "simple": true,
            "required": false,
            "writable": true,
            "nameableObject": false,
            "klass": "org.hisp.dhis.organisationunit.FeatureType",
            "propertyType": "CONSTANT",
            "oneToOne": false,
            "attribute": false,
            "owner": true,
            "readable": true,
            "identifiableObject": false,
            "cascade": "none",
            "manyToMany": false,
            "length": 50,
            "collection": false,
            "unique": false,
            "name": "featureType",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": false,
            "constants": ["NONE", "MULTI_POLYGON", "POLYGON", "POINT", "SYMBOL"]
        },
        {
            "fieldName": "uid",
            "description": "The Unique Identifier for this Object.",
            "simple": true,
            "required": false,
            "writable": true,
            "min": 11,
            "nameableObject": false,
            "klass": "java.lang.String",
            "propertyType": "IDENTIFIER",
            "oneToOne": false,
            "attribute": true,
            "owner": true,
            "readable": true,
            "identifiableObject": false,
            "max": 11,
            "cascade": "none",
            "manyToMany": false,
            "length": 11,
            "collection": false,
            "unique": true,
            "name": "id",
            "persisted": true,
            "manyToOne": false,
            "constants": []
        },
        {
            "fieldName": "href",
            "simple": true,
            "required": false,
            "writable": true,
            "min": 0,
            "nameableObject": false,
            "klass": "java.lang.String",
            "propertyType": "URL",
            "oneToOne": false,
            "attribute": true,
            "owner": false,
            "readable": true,
            "identifiableObject": false,
            "max": 2147483647,
            "manyToMany": false,
            "collection": false,
            "unique": false,
            "name": "href",
            "persisted": false,
            "manyToOne": false,
            "constants": []
        },
        {
            "relativeApiEndpoint": "/organisationUnits",
            "fieldName": "ancestors",
            "simple": false,
            "required": false,
            "writable": false,
            "collectionName": "ancestors",
            "nameableObject": true,
            "klass": "java.util.List",
            "propertyType": "COLLECTION",
            "oneToOne": false,
            "attribute": false,
            "href": "http://localhost:8080/dhis/api/schemas/organisationUnit",
            "owner": false,
            "readable": true,
            "identifiableObject": true,
            "manyToMany": false,
            "collection": true,
            "itemPropertyType": "REFERENCE",
            "collectionWrapping": true,
            "itemKlass": "org.hisp.dhis.organisationunit.OrganisationUnit",
            "apiEndpoint": "http://localhost:8080/dhis/api/organisationUnits",
            "unique": false,
            "name": "organisationUnit",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": false,
            "manyToOne": false,
            "constants": []
        },
        {
            "relativeApiEndpoint": "/organisationUnitGroups",
            "fieldName": "groups",
            "simple": false,
            "required": false,
            "writable": true,
            "collectionName": "organisationUnitGroups",
            "min": 0,
            "nameableObject": true,
            "klass": "java.util.Set",
            "propertyType": "COLLECTION",
            "oneToOne": false,
            "attribute": false,
            "href": "http://localhost:8080/dhis/api/schemas/organisationUnitGroup",
            "owner": false,
            "readable": true,
            "identifiableObject": true,
            "max": 2147483647,
            "cascade": "none",
            "manyToMany": true,
            "collection": true,
            "owningRole": "org.hisp.dhis.organisationunit.OrganisationUnitGroup.members",
            "itemPropertyType": "REFERENCE",
            "collectionWrapping": true,
            "itemKlass": "org.hisp.dhis.organisationunit.OrganisationUnitGroup",
            "inverseRole": "org.hisp.dhis.organisationunit.OrganisationUnit.groups",
            "apiEndpoint": "http://localhost:8080/dhis/api/organisationUnitGroups",
            "unique": false,
            "name": "organisationUnitGroup",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": false,
            "constants": []
        },
        {
            "fieldName": "openingDate",
            "simple": true,
            "required": true,
            "writable": true,
            "nameableObject": false,
            "klass": "java.util.Date",
            "propertyType": "DATE",
            "oneToOne": false,
            "attribute": false,
            "owner": true,
            "readable": true,
            "identifiableObject": false,
            "cascade": "none",
            "manyToMany": false,
            "length": 255,
            "collection": false,
            "unique": false,
            "name": "openingDate",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": false,
            "constants": []
        },
        {
            "fieldName": "email",
            "simple": true,
            "required": false,
            "writable": true,
            "min": 0,
            "nameableObject": false,
            "klass": "java.lang.String",
            "propertyType": "EMAIL",
            "oneToOne": false,
            "attribute": false,
            "owner": true,
            "readable": true,
            "identifiableObject": false,
            "max": 150,
            "cascade": "none",
            "manyToMany": false,
            "length": 150,
            "collection": false,
            "unique": false,
            "name": "email",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": false,
            "constants": []
        },
        {
            "fieldName": "displayDescription",
            "simple": true,
            "required": false,
            "writable": true,
            "min": 0,
            "nameableObject": false,
            "klass": "java.lang.String",
            "propertyType": "TEXT",
            "oneToOne": false,
            "attribute": false,
            "owner": false,
            "readable": true,
            "identifiableObject": false,
            "max": 2147483647,
            "manyToMany": false,
            "collection": false,
            "unique": false,
            "name": "displayDescription",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": false,
            "manyToOne": false,
            "constants": []
        },
        {
            "fieldName": "userGroupAccesses",
            "simple": false,
            "required": false,
            "writable": true,
            "collectionName": "userGroupAccesses",
            "min": 0,
            "nameableObject": false,
            "klass": "java.util.Set",
            "propertyType": "COLLECTION",
            "oneToOne": false,
            "attribute": false,
            "owner": false,
            "readable": true,
            "identifiableObject": false,
            "max": 2147483647,
            "manyToMany": false,
            "collection": true,
            "itemPropertyType": "COMPLEX",
            "collectionWrapping": true,
            "itemKlass": "org.hisp.dhis.user.UserGroupAccess",
            "unique": false,
            "name": "userGroupAccess",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": false,
            "manyToOne": false,
            "constants": []
        },
        {
            "fieldName": "address",
            "simple": true,
            "required": false,
            "writable": true,
            "min": 0,
            "nameableObject": false,
            "klass": "java.lang.String",
            "propertyType": "TEXT",
            "oneToOne": false,
            "attribute": false,
            "owner": true,
            "readable": true,
            "identifiableObject": false,
            "max": 255,
            "cascade": "none",
            "manyToMany": false,
            "length": 255,
            "collection": false,
            "unique": false,
            "name": "address",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": false,
            "constants": []
        },
        {
            "fieldName": "dimensionItem",
            "simple": true,
            "required": false,
            "writable": true,
            "min": 0,
            "nameableObject": false,
            "klass": "java.lang.String",
            "propertyType": "TEXT",
            "oneToOne": false,
            "attribute": false,
            "owner": false,
            "readable": true,
            "identifiableObject": false,
            "max": 2147483647,
            "manyToMany": false,
            "collection": false,
            "unique": false,
            "name": "dimensionItem",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": false,
            "manyToOne": false,
            "constants": []
        },
        {
            "fieldName": "level",
            "simple": true,
            "required": false,
            "writable": false,
            "nameableObject": false,
            "klass": "java.lang.Integer",
            "propertyType": "INTEGER",
            "oneToOne": false,
            "attribute": true,
            "owner": false,
            "readable": true,
            "identifiableObject": false,
            "manyToMany": false,
            "collection": false,
            "unique": false,
            "name": "level",
            "persisted": false,
            "manyToOne": false,
            "constants": []
        },
        {
            "fieldName": "created",
            "description": "The date this object was created.",
            "simple": true,
            "required": false,
            "writable": true,
            "nameableObject": false,
            "klass": "java.util.Date",
            "propertyType": "DATE",
            "oneToOne": false,
            "attribute": true,
            "owner": true,
            "readable": true,
            "identifiableObject": false,
            "cascade": "none",
            "manyToMany": false,
            "length": 255,
            "collection": false,
            "unique": false,
            "name": "created",
            "persisted": true,
            "manyToOne": false,
            "constants": []
        },
        {
            "fieldName": "coordinates",
            "simple": true,
            "required": false,
            "writable": true,
            "min": 0,
            "nameableObject": false,
            "klass": "java.lang.String",
            "propertyType": "GEOLOCATION",
            "oneToOne": false,
            "attribute": false,
            "owner": true,
            "readable": true,
            "identifiableObject": false,
            "max": 2147483647,
            "cascade": "none",
            "manyToMany": false,
            "length": 2147483647,
            "collection": false,
            "unique": false,
            "name": "coordinates",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": false,
            "constants": []
        },
        {
            "fieldName": "attributeValues",
            "simple": false,
            "required": false,
            "writable": true,
            "collectionName": "attributeValues",
            "min": 0,
            "nameableObject": false,
            "klass": "java.util.Set",
            "propertyType": "COLLECTION",
            "oneToOne": false,
            "attribute": false,
            "owner": true,
            "readable": true,
            "identifiableObject": false,
            "max": 2147483647,
            "cascade": "delete-orphan",
            "manyToMany": true,
            "collection": true,
            "owningRole": "org.hisp.dhis.organisationunit.OrganisationUnit.attributeValues",
            "itemPropertyType": "COMPLEX",
            "collectionWrapping": true,
            "itemKlass": "org.hisp.dhis.attribute.AttributeValue",
            "unique": false,
            "name": "attributeValue",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": false,
            "constants": []
        },
        {
            "relativeApiEndpoint": "/users",
            "fieldName": "users",
            "simple": false,
            "required": false,
            "writable": true,
            "collectionName": "users",
            "min": 0,
            "nameableObject": false,
            "klass": "java.util.Set",
            "propertyType": "COLLECTION",
            "oneToOne": false,
            "attribute": false,
            "href": "http://localhost:8080/dhis/api/schemas/user",
            "owner": false,
            "readable": true,
            "identifiableObject": true,
            "max": 2147483647,
            "cascade": "none",
            "manyToMany": true,
            "collection": true,
            "owningRole": "org.hisp.dhis.user.User.organisationUnits",
            "itemPropertyType": "REFERENCE",
            "collectionWrapping": true,
            "itemKlass": "org.hisp.dhis.user.User",
            "inverseRole": "org.hisp.dhis.organisationunit.OrganisationUnit.users",
            "apiEndpoint": "http://localhost:8080/dhis/api/users",
            "unique": false,
            "name": "userItem",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": false,
            "constants": []
        },
        {
            "fieldName": "url",
            "simple": true,
            "required": false,
            "writable": true,
            "min": 0,
            "nameableObject": false,
            "klass": "java.lang.String",
            "propertyType": "URL",
            "oneToOne": false,
            "attribute": false,
            "owner": true,
            "readable": true,
            "identifiableObject": false,
            "max": 255,
            "cascade": "none",
            "manyToMany": false,
            "length": 255,
            "collection": false,
            "unique": false,
            "name": "url",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": false,
            "constants": []
        },
        {
            "fieldName": "phoneNumber",
            "simple": true,
            "required": false,
            "writable": true,
            "min": 0,
            "nameableObject": false,
            "klass": "java.lang.String",
            "propertyType": "PHONENUMBER",
            "oneToOne": false,
            "attribute": false,
            "owner": true,
            "readable": true,
            "identifiableObject": false,
            "max": 150,
            "cascade": "none",
            "manyToMany": false,
            "length": 150,
            "collection": false,
            "unique": false,
            "name": "phoneNumber",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": false,
            "constants": []
        },
        {
            "fieldName": "closedDate",
            "simple": true,
            "required": false,
            "writable": true,
            "nameableObject": false,
            "klass": "java.util.Date",
            "propertyType": "DATE",
            "oneToOne": false,
            "attribute": false,
            "owner": true,
            "readable": true,
            "identifiableObject": false,
            "cascade": "none",
            "manyToMany": false,
            "length": 255,
            "collection": false,
            "unique": false,
            "name": "closedDate",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": false,
            "constants": []
        },
        {
            "fieldName": "name",
            "description": "The name of this Object. Required and unique.",
            "simple": true,
            "required": true,
            "writable": true,
            "min": 1,
            "nameableObject": false,
            "klass": "java.lang.String",
            "propertyType": "TEXT",
            "oneToOne": false,
            "attribute": true,
            "owner": true,
            "readable": true,
            "identifiableObject": false,
            "max": 230,
            "cascade": "none",
            "manyToMany": false,
            "length": 230,
            "collection": false,
            "unique": false,
            "name": "name",
            "persisted": true,
            "manyToOne": false,
            "constants": []
        },
        {
            "relativeApiEndpoint": "/legendSets",
            "fieldName": "legendSet",
            "simple": false,
            "required": false,
            "writable": true,
            "nameableObject": false,
            "klass": "org.hisp.dhis.legend.LegendSet",
            "propertyType": "REFERENCE",
            "oneToOne": false,
            "attribute": false,
            "href": "http://localhost:8080/dhis/api/schemas/legendSet",
            "owner": false,
            "readable": true,
            "identifiableObject": true,
            "manyToMany": false,
            "collection": false,
            "apiEndpoint": "http://localhost:8080/dhis/api/legendSets",
            "unique": false,
            "name": "legendSet",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": false,
            "manyToOne": false,
            "constants": []
        },
        {
            "relativeApiEndpoint": "/dataSets",
            "fieldName": "dataSets",
            "simple": false,
            "required": false,
            "writable": true,
            "collectionName": "dataSets",
            "min": 0,
            "nameableObject": true,
            "klass": "java.util.Set",
            "propertyType": "COLLECTION",
            "oneToOne": false,
            "attribute": false,
            "href": "http://localhost:8080/dhis/api/schemas/dataSet",
            "owner": false,
            "readable": true,
            "identifiableObject": true,
            "max": 2147483647,
            "cascade": "none",
            "manyToMany": true,
            "collection": true,
            "owningRole": "org.hisp.dhis.dataset.DataSet.sources",
            "itemPropertyType": "REFERENCE",
            "collectionWrapping": true,
            "itemKlass": "org.hisp.dhis.dataset.DataSet",
            "inverseRole": "org.hisp.dhis.organisationunit.OrganisationUnit.dataSets",
            "apiEndpoint": "http://localhost:8080/dhis/api/dataSets",
            "unique": false,
            "name": "dataSet",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": false,
            "constants": []
        },
        {
            "fieldName": "comment",
            "simple": true,
            "required": false,
            "writable": true,
            "min": 2,
            "nameableObject": false,
            "klass": "java.lang.String",
            "propertyType": "TEXT",
            "oneToOne": false,
            "attribute": false,
            "owner": true,
            "readable": true,
            "identifiableObject": false,
            "max": 2147483647,
            "cascade": "none",
            "manyToMany": false,
            "length": 2147483647,
            "collection": false,
            "unique": false,
            "name": "comment",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": false,
            "constants": []
        },
        {
            "relativeApiEndpoint": "/programs",
            "fieldName": "programs",
            "simple": false,
            "required": false,
            "writable": true,
            "collectionName": "programs",
            "min": 0,
            "nameableObject": true,
            "klass": "java.util.Set",
            "propertyType": "COLLECTION",
            "oneToOne": false,
            "attribute": false,
            "href": "http://localhost:8080/dhis/api/schemas/program",
            "owner": false,
            "readable": true,
            "identifiableObject": true,
            "max": 2147483647,
            "cascade": "none",
            "manyToMany": true,
            "collection": true,
            "owningRole": "org.hisp.dhis.program.Program.organisationUnits",
            "itemPropertyType": "REFERENCE",
            "collectionWrapping": true,
            "itemKlass": "org.hisp.dhis.program.Program",
            "inverseRole": "org.hisp.dhis.organisationunit.OrganisationUnit.programs",
            "apiEndpoint": "http://localhost:8080/dhis/api/programs",
            "unique": false,
            "name": "program",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": false,
            "constants": []
        },
        {
            "fieldName": "shortName",
            "simple": true,
            "required": true,
            "writable": true,
            "min": 1,
            "nameableObject": false,
            "klass": "java.lang.String",
            "propertyType": "TEXT",
            "oneToOne": false,
            "attribute": true,
            "owner": true,
            "readable": true,
            "identifiableObject": false,
            "max": 50,
            "cascade": "none",
            "manyToMany": false,
            "length": 50,
            "collection": false,
            "unique": false,
            "name": "shortName",
            "persisted": true,
            "manyToOne": false,
            "constants": []
        },
        {
            "relativeApiEndpoint": "/users",
            "fieldName": "user",
            "simple": false,
            "required": false,
            "writable": true,
            "nameableObject": false,
            "klass": "org.hisp.dhis.user.User",
            "propertyType": "REFERENCE",
            "oneToOne": false,
            "attribute": false,
            "href": "http://localhost:8080/dhis/api/schemas/user",
            "owner": true,
            "readable": true,
            "identifiableObject": true,
            "cascade": "none",
            "manyToMany": false,
            "length": 255,
            "collection": false,
            "owningRole": "org.hisp.dhis.organisationunit.OrganisationUnit.user",
            "apiEndpoint": "http://localhost:8080/dhis/api/users",
            "unique": false,
            "name": "user",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": true,
            "constants": []
        }
    ]
}