Category:OSW8c56fd1e858f499da801691c5f2b7309: Difference between revisions

Update package: OSW Base
(Update package: OSW Base)
(Update package: OSW Base)
 
jsonschema
Line 3: Line 3:
         {
         {
             "network_port": "Property:HasPort",
             "network_port": "Property:HasPort",
             "host": "Property:HasHost",
             "host": {
             "hosted_software": "Property:Hosts",
                "@id": "Property:HasHost",
                "@type": "@id"
            },
             "hosted_software": {
                "@id": "Property:Hosts",
                "@type": "@id"
            },
            "schema": "Property:HasUrlSchema",
             "version": "Property:HasVersion",
             "version": "Property:HasVersion",
             "domain": "Property:HasNetworkDomain",
             "domain": "Property:HasNetworkDomain",
             "url_path": "Property:UrlPath",
             "url_path": "Property:HasUrlPath",
             "url": "Property:HasUrl"
             "url": "Property:HasUrl"
         }
         }
     ],
     ],
    "type": "object",
     "allOf": [
     "allOf": [
         {
         {
Line 17: Line 23:
         }
         }
     ],
     ],
    "type": "object",
     "title": "WebService",
     "title": "WebService",
    "required": [
        "type"
    ],
    "defaultProperties": [
        "hosted_software",
        "host",
        "schema",
        "domain",
        "network_port",
        "url_path"
    ],
     "properties": {
     "properties": {
         "host": {
         "type": {
             "title": "Hosts",
            "default": [
                "Category:OSW8c56fd1e858f499da801691c5f2b7309"
            ]
        },
        "hosted_software": {
             "title": "Hosted Software",
             "type": "array",
             "type": "array",
             "format": "table",
             "format": "table",
             "items": {
             "items": {
                 "title": "Host",
                 "title": "Software",
                 "type": "string",
                 "type": "string",
                 "format": "autocomplete",
                 "format": "autocomplete",
                 "query": "[[Category:OSW02590972aeba46d7864ed492c0c11384]] |?Display_title_of=label",
                 "range": "Category:OSW77e749fc598341ac8b6d2fff21574058"
                "previewWikiTextTemplate": "{{#if result.printouts.HasImage.0.fulltext}}[[{{result.printouts.HasImage.0.fulltext}}|right|x66px]]\u003C/br\u003E{{/if}}[[{{result.fulltext}}]]",
                "labelTemplate": "{{result.printouts.label.[0]}}"
             },
             },
             "minItems": 1
             "minItems": 1
         },
         },
         "network_port": {
         "host": {
            "items": {
             "title": "Hosts",
                "title": "Port",
                "type": "integer"
            },
            "title": "Ports",
            "type": "array"
        },
        "hosted_software": {
             "title": "Hosted Software",
             "type": "array",
             "type": "array",
             "format": "table",
             "format": "table",
             "items": {
             "items": {
                 "title": "Software",
                 "title": "Host",
                 "type": "string",
                 "type": "string",
                 "format": "autocomplete",
                 "format": "autocomplete",
                 "query": "[[Category:OSW77e749fc598341ac8b6d2fff21574058]] |?Display_title_of=label",
                 "range": "Category:OSW02590972aeba46d7864ed492c0c11384"
                "previewWikiTextTemplate": "{{#if result.printouts.HasImage.0.fulltext}}[[{{result.printouts.HasImage.0.fulltext}}|right|x66px]]\u003C/br\u003E{{/if}}[[{{result.fulltext}}]]",
                "labelTemplate": "{{result.printouts.label.[0]}}"
             },
             },
             "minItems": 1
             "minItems": 1
         },
         },
         "version": {
         "schema": {
             "title": "Version",
             "title": "Schema",
             "description": "Version of the hosted software",
             "description": "e.g. http, https",
             "type": "string"
             "type": "string"
         },
         },
Line 63: Line 74:
             "title": "Domain",
             "title": "Domain",
             "type": "string"
             "type": "string"
        },
        "network_port": {
            "items": {
                "title": "Port",
                "type": "integer"
            },
            "title": "Ports",
            "type": "array"
         },
         },
         "url_path": {
         "url_path": {
Line 73: Line 92:
             "format": "url"
             "format": "url"
         },
         },
         "type": {
         "version": {
             "default": [
             "title": "Version",
                "Category:OSW8c56fd1e858f499da801691c5f2b7309"
            "description": "Version of the hosted software",
             ]
             "type": "string"
         }
         }
     },
     }
    "required": [
        "type"
    ]
}
}