Skip to content

'options' keyword added to various properties #351

@duncandewhurst

Description

@duncandewhurst

In the 0.3-dev schema, an options keyword has been added to several properties:

  • vulnerability.functions.vulnerability
  • vulnerability.functions.fragility
  • vulnerability.functions.damage_to_loss
  • vulnerability.functions.engineering_demand
  • vulnerability.socio_economic

For example:

"socio_economic": {
"title": "Socio-economic indices",
"type": "array",
"description": "Array of socio-economic indices vulnerable to the hazard.",
"items": {
"$ref": "#/$defs/SocioEconomicIndex"
},
"minItems": 1,
"uniqueItems": true,
"options": {
"button_group": "socio_economic",
"button_label": "Add Socio-Economic Index"
}
}

@matamadio @stufraser1 I can't see this discussed anywhere, but I'm guessing it is to do with the behaviour of the metadata editor. Please could you clarify the purpose of the keyword?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions