Skip to content

Support user-defined types for type constraint. #35

@linlin-s

Description

@linlin-s
    /**
     * Get the value of constraint 'type' in IonType format.
     * @return the value of 'type' in IonType format.
     */
    public IonType getIonType() {
        return IonType.valueOf(getIsl().get(KEYWORD_TYPE).toString().toUpperCase());
    }

This method only work when the provided constraint type is one of core types. If the provided type is user-defined, this method won't work. And we need to look up the type definition by using method Schema#getType(String name) .

Referred comments:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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