Merge pull request #91 from Marginal/factions_localised

Extend ban on ..._Localised properties to Factions, Materials & StationEconomies lists
This commit is contained in:
AnthorNet 2019-10-02 10:03:55 +02:00 committed by GitHub
commit a253a76b46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,6 +69,9 @@
"HomeSystem" : { "$ref" : "#/definitions/disallowed" },
"MyReputation" : { "$ref" : "#/definitions/disallowed" },
"SquadronFaction" : { "$ref" : "#/definitions/disallowed" }
},
"patternProperties" : {
"_Localised$" : { "$ref" : "#/definitions/disallowed" }
}
}
},
@ -82,10 +85,20 @@
"Longitude" : { "$ref" : "#/definitions/disallowed" },
"Wanted" : { "$ref" : "#/definitions/disallowed" }
},
"patternProperties" : {
"_Localised$" : { "$ref" : "#/definitions/disallowed" },
"^(Materials|StationEconomies)$" : {
"type" : "array",
"description" : "Present in Scan and Docked messages",
"items" : {
"type" : "object",
"patternProperties" : {
"_Localised$" : { "$ref" : "#/definitions/disallowed" }
}
}
}
}
}
},
"definitions": {
"disallowed" : { "not" : { "type": [ "array", "boolean", "integer", "number", "null", "object", "string" ] } }