CLI for SchemaNest. Where schemas grow, thrive, and scale with your team.
10K+
Where schemas grow, thrive, and scale with your team.
docker run --rm -it -v $PWD:/workspace:ro -w /workspace \
timoreymann/schemanest-cli schema-nest-cli \
--help
schema-nest-cli* for your OS from
the latest release.PATHschema-nest-cliconfig.toml:
# Connect to local database
database_dsn = "postgres://schema-nest:schema-nest@db/schema-nest"
# Allow uploads only with authentication
enable_upload_authentication = true
# Define API-Key(s)
[[api_keys]]
identifier = "frontend"
# make sure to set this to a proper secret (UUID, hash etc.)
key = "my-super-secret-api-key"
patterns = [
# Allow all schemas prefixed with @frontend/
"@frontend/*",
# Allow schema mjml-config
"mjml-config"
]
docker-compose.yaml
services:
registry:
image: timoreymann/schemanest-registry
command:
- schema-nest-registry
- serve-http
- -C
- /etc/SchemaNest/config.toml
volumes:
- ./config.toml:/etc/SchemaNest/config.toml
ports:
- 8080:8080
db:
image: postgres:15-alpine
environment:
POSTGRES_DB: schema-nest
POSTGRES_USER: schema-nest
POSTGRES_PASSWORD: schema-nest
volumes:
- schema-nest-db-data:/var/lib/postgresql/data
restart: always
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"]
interval: 5s
timeout: 5s
retries: 5
volumes:
schema-nest-db-data:
docker compose upschema-nest-registry* for your OS from
the latest release../schema-nest-registry-{os}-{arch}schema-nest-cli --help
# Spin up server on 0.0.0.0:8080
schema-nest-registry serve-http --port "8080"
Managing JSON Schemas is not rocket science. But every company I worked on had its own way of doing it. Some used a simple file share, others had a complex setup with multiple repositories and CI/CD pipelines. I wanted to create a solution that is straightforward to use, flexible, and can be adapted to any workflow.
There are already a few tools out there that do a great job at managing JSON schemas. But they are either too complex or too resource-intensive for my needs. I wanted to create a tool that is easy to use, lightweight, and can be run on any machine.
The API definition is managed through OpenAPI 3.0, you can find an up-to-date spec in openapi.yml.
For the Redocly UI click here. Please keep in mind that this is always the latest development version.
Changes to the API are done when ever possible in a backward-compatible manner. So make sure your consuming code can handle extra fields.
I love your input! I want to make contributing to this project as easy and transparent as possible, whether it's:
To get started, please read the Contribution Guidelines.
make test-coverage-report
make build
Content type
Image
Digest
sha256:ca0412954…
Size
14.9 MB
Last updated
about 1 month ago
docker pull timoreymann/schemanest-cli