You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Formatting flags like hyphenate are only working when the formatter is set on the base Wrapper
base=tortilla.wrap('api.example.org', hyphenate=True)
base.hyphenated_endpoint# GET api.example.org/hyphenated-endpoint# howeverbase=tortilla.wrap('api.example.org')
base.hyphenated_endpoint(hyphenate=True) # GET api.exaple.org/hyphenated_endpointbase('hyphenated_endpoint', hyphenate=True) # same result
I think it would be a good idea to add support of formatting options to single endpoints as well.
The text was updated successfully, but these errors were encountered:
When creating new children objects as it's own varibale the formatters are also not working even when the formatter has been set on the base. The issue here is that the formatter in the config is not set on the child by the parent
base=tortilla.wrap('api.example.org', hyphenate=True)
base.hyphenated_endpoint# GET api.example.org/hyphenated-endpointendpoint=base.('extra/endpoint')
endpoint.hyphenated_endpoint# GET api.example.org/extra/endpoint/hyphenated_endpointprint(endpoint.config.formatter) # None
Formatting flags like
hyphenate
are only working when the formatter is set on the baseWrapper
I think it would be a good idea to add support of formatting options to single endpoints as well.
The text was updated successfully, but these errors were encountered: