Skip to content

Unification process in the route maps #16

@green-coder

Description

@green-coder

It would be nice to have the meaning of string extended when they are used inside of route maps, so that they behave as constraints. It could allow an improved expressiveness.

For example, we could declare routes based on certain content-types:

;; From documentation at https://lacinia-pedestal.readthedocs.io/en/latest/request.html#post-application-json
;; This actually returns false, unfortunately.
(ataraxy/valid?
 '{"/graphql"
   {[:get #{query}] [:graphql-get query]
    [:post
     {{"application/json" "Content-Type"} :headers}
     {{:keys [query variables operationName]} :body}]
    [:graphql-post query variables operationName]}})

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions