Skip to content

Split out validators into a separate optional dependency project #142

Open
@geota

Description

@geota

I am trying to use json-schema-validator in an Android app and am currently hitting the 65k dex method limit. Working on splitting my app into multiple dex, but was taking a look at json-schema-validator's dependencies and noticed the dependencies on joda-time and javax.mail.

Looks like you use joda-time to verify "datetime" format and javax.mail to verify the "email" format. Could these and the other validators be split out into an optional dependency package? Implementations are not required to provide implementations for the formats included in draftv4 of the spec. This would allow users of your library to choose if they want to include the format validators and perhaps promote users to contribute back custom validators that could be generally useful.

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