purescript / registry-dev

Development work related to the PureScript Registry
https://github.com/purescript/registry
97 stars 80 forks source link

Add Operation.purs module #528

Closed thomashoneyman closed 2 years ago

thomashoneyman commented 2 years ago

This PR moves the Operation type out to its own module and unifies the Addition and Update types as described in #524. This is done in preparation for #523, in which all operation checks will move to this new file.

See also the changed instructions in the registry repo, as the JSON fields have changed: https://github.com/purescript/registry/pull/30

I don't plan to update these any more -- these are the fields that the API will expect. I've standardized fields like name :: PackageName because once we use a server we won't need to rely on distinguishing payloads structurally anymore.