Skip to content

[Type] annotation for properties #9

Description

@tpluscode

The TypeAttribute proposed by @asbjornu (see #6) could also be used with properties to declare literal type:

[Type("xsd:date")]
public DateTime BirthDate { get; set; }

would serialize as smth like

"birthDate": {
  "@value": "2016-10-10",
  "@type": "xsd:date"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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