Skip to content

value should reject non-numbers #43

@azaroth42

Description

@azaroth42

e.g.

>>> from cromulent import model
>>> d = model.Dimension()
>>> d.value = "foo"
>>> print(model.factory.toString(d, compact=False))
{
  "@context": "https://linked.art/ns/v1/linked-art.json",
  "id": "http://lod.example.org/museum/Dimension/0",
  "type": "Dimension",
  "value": "foo"
}

This should fail to set d.value

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions