src/__fixtures__/json/api/schemas/legend.json

Summary

Maintainability
Test Coverage
{
    "klass": "org.hisp.dhis.legend.Legend",
    "shareable": false,
    "translatable": true,
    "identifiableObject": true,
    "relativeApiEndpoint": "/legends",
    "metadata": true,
    "plural": "legends",
    "displayName": "Legends",
    "collectionName": "legends",
    "implicitPrivateAuthority": false,
    "apiEndpoint": "https://play.dhis2.org/demo/api/legends",
    "nameableObject": false,
    "defaultPrivate": false,
    "name": "legend",
    "namespace": "http://dhis2.org/schema/dxf/2.0",
    "href": "https://play.dhis2.org/demo/api/schemas/legend",
    "singular": "legend",
    "persisted": true,
    "order": 1070,
    "references": ["org.hisp.dhis.legend.LegendSet", "org.hisp.dhis.user.User"],
    "authorities": [
        {
            "type": "CREATE",
            "authorities": ["F_LEGEND_SET_ADD", "F_GIS_ADMIN"]
        },
        {
            "type": "DELETE",
            "authorities": ["F_LEGEND_SET_DELETE", "F_GIS_ADMIN"]
        }
    ],
    "properties": [
        {
            "fieldName": "image",
            "simple": true,
            "required": false,
            "writable": true,
            "min": 0.0,
            "nameableObject": false,
            "klass": "java.lang.String",
            "propertyType": "TEXT",
            "oneToOne": false,
            "attribute": false,
            "owner": true,
            "readable": true,
            "ordered": false,
            "identifiableObject": false,
            "max": 255.0,
            "manyToMany": false,
            "length": 255,
            "collection": false,
            "unique": false,
            "name": "image",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": false,
            "constants": []
        },
        {
            "fieldName": "access",
            "simple": false,
            "required": false,
            "writable": true,
            "min": 0.0,
            "nameableObject": false,
            "klass": "org.hisp.dhis.security.acl.Access",
            "propertyType": "COMPLEX",
            "oneToOne": false,
            "attribute": false,
            "owner": false,
            "readable": true,
            "ordered": false,
            "identifiableObject": false,
            "max": 1.7976931348623157e308,
            "manyToMany": false,
            "collection": false,
            "unique": false,
            "name": "access",
            "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.0,
            "nameableObject": false,
            "klass": "java.util.Set",
            "propertyType": "COLLECTION",
            "oneToOne": false,
            "attribute": false,
            "owner": false,
            "readable": true,
            "ordered": false,
            "identifiableObject": false,
            "max": 1.7976931348623157e308,
            "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": "code",
            "description": "The unique code for this Object.",
            "simple": true,
            "required": false,
            "writable": true,
            "min": 0.0,
            "nameableObject": false,
            "klass": "java.lang.String",
            "propertyType": "IDENTIFIER",
            "oneToOne": false,
            "attribute": true,
            "owner": true,
            "readable": true,
            "ordered": false,
            "identifiableObject": false,
            "max": 50.0,
            "manyToMany": false,
            "length": 50,
            "collection": false,
            "unique": true,
            "name": "code",
            "persisted": true,
            "manyToOne": false,
            "constants": []
        },
        {
            "fieldName": "endValue",
            "simple": true,
            "required": true,
            "writable": true,
            "min": -2.147483648e9,
            "nameableObject": false,
            "klass": "java.lang.Double",
            "propertyType": "NUMBER",
            "oneToOne": false,
            "attribute": false,
            "owner": true,
            "readable": true,
            "ordered": false,
            "identifiableObject": false,
            "max": 1.7976931348623157e308,
            "manyToMany": false,
            "length": 2147483647,
            "collection": false,
            "unique": false,
            "name": "endValue",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": false,
            "constants": []
        },
        {
            "fieldName": "color",
            "simple": true,
            "required": false,
            "writable": true,
            "min": 0.0,
            "nameableObject": false,
            "klass": "java.lang.String",
            "propertyType": "TEXT",
            "oneToOne": false,
            "attribute": false,
            "owner": true,
            "readable": true,
            "ordered": false,
            "identifiableObject": false,
            "max": 255.0,
            "manyToMany": false,
            "length": 255,
            "collection": false,
            "unique": false,
            "name": "color",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "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,
            "ordered": false,
            "identifiableObject": false,
            "manyToMany": false,
            "length": 255,
            "collection": false,
            "unique": false,
            "name": "created",
            "persisted": true,
            "manyToOne": false,
            "constants": []
        },
        {
            "fieldName": "displayName",
            "simple": true,
            "required": false,
            "writable": true,
            "min": 0.0,
            "nameableObject": false,
            "klass": "java.lang.String",
            "propertyType": "TEXT",
            "oneToOne": false,
            "attribute": false,
            "owner": false,
            "readable": true,
            "ordered": false,
            "identifiableObject": false,
            "max": 2.147483647e9,
            "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.0,
            "nameableObject": false,
            "klass": "java.lang.String",
            "propertyType": "TEXT",
            "oneToOne": false,
            "attribute": false,
            "owner": false,
            "readable": true,
            "ordered": false,
            "identifiableObject": false,
            "max": 8.0,
            "manyToMany": false,
            "collection": false,
            "unique": false,
            "name": "publicAccess",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": false,
            "manyToOne": false,
            "constants": []
        },
        {
            "fieldName": "attributeValues",
            "simple": false,
            "required": false,
            "writable": true,
            "collectionName": "attributeValues",
            "min": 0.0,
            "nameableObject": false,
            "klass": "java.util.Set",
            "propertyType": "COLLECTION",
            "oneToOne": false,
            "attribute": false,
            "owner": false,
            "readable": true,
            "ordered": false,
            "identifiableObject": false,
            "max": 1.7976931348623157e308,
            "manyToMany": false,
            "collection": true,
            "itemPropertyType": "COMPLEX",
            "collectionWrapping": true,
            "itemKlass": "org.hisp.dhis.attribute.AttributeValue",
            "unique": false,
            "name": "attributeValue",
            "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,
            "ordered": false,
            "identifiableObject": false,
            "manyToMany": false,
            "collection": false,
            "unique": false,
            "name": "externalAccess",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": false,
            "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,
            "ordered": false,
            "identifiableObject": false,
            "manyToMany": false,
            "length": 255,
            "collection": false,
            "unique": false,
            "name": "lastUpdated",
            "persisted": true,
            "manyToOne": false,
            "constants": []
        },
        {
            "fieldName": "translations",
            "simple": false,
            "required": false,
            "writable": true,
            "collectionName": "translations",
            "min": 0.0,
            "nameableObject": false,
            "klass": "java.util.Set",
            "propertyType": "COLLECTION",
            "oneToOne": false,
            "attribute": false,
            "owner": true,
            "readable": true,
            "ordered": false,
            "identifiableObject": false,
            "max": 1.7976931348623157e308,
            "cascade": "delete-orphan",
            "manyToMany": true,
            "collection": true,
            "owningRole": "org.hisp.dhis.legend.Legend.translations",
            "itemPropertyType": "COMPLEX",
            "collectionWrapping": true,
            "itemKlass": "org.hisp.dhis.translation.ObjectTranslation",
            "unique": false,
            "name": "translation",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": false,
            "constants": []
        },
        {
            "fieldName": "userAccesses",
            "simple": false,
            "required": false,
            "writable": true,
            "collectionName": "userAccesses",
            "min": 0.0,
            "nameableObject": false,
            "klass": "java.util.Set",
            "propertyType": "COLLECTION",
            "oneToOne": false,
            "attribute": false,
            "owner": false,
            "readable": true,
            "ordered": false,
            "identifiableObject": false,
            "max": 1.7976931348623157e308,
            "manyToMany": false,
            "collection": true,
            "itemPropertyType": "COMPLEX",
            "collectionWrapping": true,
            "itemKlass": "org.hisp.dhis.user.UserAccess",
            "unique": false,
            "name": "userAccess",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": false,
            "manyToOne": false,
            "constants": []
        },
        {
            "fieldName": "name",
            "translationKey": "NAME",
            "description": "The name of this Object. Required and unique.",
            "simple": true,
            "required": true,
            "writable": true,
            "min": 1.0,
            "nameableObject": false,
            "klass": "java.lang.String",
            "propertyType": "TEXT",
            "oneToOne": false,
            "attribute": true,
            "owner": true,
            "readable": true,
            "ordered": false,
            "identifiableObject": false,
            "max": 2.147483647e9,
            "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": "https://play.dhis2.org/demo/api/schemas/legendSet",
            "owner": true,
            "readable": true,
            "ordered": false,
            "identifiableObject": true,
            "cascade": "none",
            "manyToMany": false,
            "length": 255,
            "collection": false,
            "owningRole": "org.hisp.dhis.legend.Legend.legendSet",
            "apiEndpoint": "https://play.dhis2.org/demo/api/legendSets",
            "unique": false,
            "name": "legendSet",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": true,
            "constants": []
        },
        {
            "fieldName": "href",
            "simple": true,
            "required": false,
            "writable": true,
            "min": 0.0,
            "nameableObject": false,
            "klass": "java.lang.String",
            "propertyType": "URL",
            "oneToOne": false,
            "attribute": true,
            "owner": false,
            "readable": true,
            "ordered": false,
            "identifiableObject": false,
            "max": 1.7976931348623157e308,
            "manyToMany": false,
            "collection": false,
            "unique": false,
            "name": "href",
            "persisted": false,
            "manyToOne": false,
            "constants": []
        },
        {
            "fieldName": "startValue",
            "simple": true,
            "required": true,
            "writable": true,
            "min": -2.147483648e9,
            "nameableObject": false,
            "klass": "java.lang.Double",
            "propertyType": "NUMBER",
            "oneToOne": false,
            "attribute": false,
            "owner": true,
            "readable": true,
            "ordered": false,
            "identifiableObject": false,
            "max": 1.7976931348623157e308,
            "manyToMany": false,
            "length": 2147483647,
            "collection": false,
            "unique": false,
            "name": "startValue",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": true,
            "manyToOne": false,
            "constants": []
        },
        {
            "fieldName": "uid",
            "description": "The Unique Identifier for this Object.",
            "simple": true,
            "required": false,
            "writable": true,
            "min": 11.0,
            "nameableObject": false,
            "klass": "java.lang.String",
            "propertyType": "IDENTIFIER",
            "oneToOne": false,
            "attribute": true,
            "owner": true,
            "readable": true,
            "ordered": false,
            "identifiableObject": false,
            "max": 11.0,
            "manyToMany": false,
            "length": 11,
            "collection": false,
            "unique": true,
            "name": "id",
            "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": "https://play.dhis2.org/demo/api/schemas/user",
            "owner": false,
            "readable": true,
            "ordered": false,
            "identifiableObject": true,
            "manyToMany": false,
            "collection": false,
            "apiEndpoint": "https://play.dhis2.org/demo/api/users",
            "unique": false,
            "name": "user",
            "namespace": "http://dhis2.org/schema/dxf/2.0",
            "persisted": false,
            "manyToOne": false,
            "constants": []
        }
    ]
}