-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
FeatureDescription of a feature that could be implementedDescription of a feature that could be implemented
Description
When projects publish their endpoint specs in an extremely large file or in lots of smaller files you may want to massage them a little bit and only take the parts that you actually use. The idea is that Reynard can help with this because it already has an interface to navigate the specs.
For example:
# Filter based on operation names
reynard reduce --source https://example.com/openapi.json --select-operations getAuthors,getAuthor,getLibrary > openapi.yml
# Filter using a configuration file
reynard reduce --source https://example.com/openapi.json --select-file config/used.yml --format json > openapi.json
# Combine multiple sources
reynard combine --source openapi1.json --source openapi2.json > openapi.ymlIt may be useful to keep a cached version of the sources and use conditional requests to speed up interaction. We should also fall back on a cached versions when an HTTP request fails with a server error.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
FeatureDescription of a feature that could be implementedDescription of a feature that could be implemented