Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Refactor format code #249

Merged
merged 1 commit into from
Jun 26, 2019
Merged

Conversation

johandorland
Copy link
Collaborator

  • Require the format keyword to be of type string, like the JSON schema specification requires.
  • Restructure some of the format logic to be handled at validation time instead of schema
    parsing time. Previously errors could occur if a format was registered or deleted after a schema is parsed, but before validation. Now it only matters if a formatter is registered at validation time.
  • Use a sync.RWMutex instead of a regular sync.Mutex

the format logic to be handled at validation time instead of schema
parsing time and use a RWMutex instead of a regular Mutex.
@johandorland johandorland merged commit 16a6735 into xeipuuv:master Jun 26, 2019
@johandorland johandorland deleted the numberformat branch June 26, 2019 08:36
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant