Issue 553 - add : Add schemav2validator plugin documentation and configuration examples

This commit is contained in:
ameersohel45
2025-11-18 14:56:56 +05:30
parent ab31e13e81
commit 4e69f5a106
3 changed files with 64 additions and 8 deletions

View File

@@ -121,7 +121,8 @@ The **Beckn Protocol** is an open protocol that enables location-aware, local co
- **Router**: YAML-based routing rules engine for request forwarding
- **Signer**: Ed25519 digital signature creation for outgoing requests
- **SignValidator**: Ed25519 signature validation for incoming requests
- **SchemaValidator**: JSON schema validation
- **SchemaValidator**: JSON schema validation
- **Schemav2Validator**: OpenAPI 3.x schema validation with action-based matching
- **KeyManager**: HashiCorp Vault integration for production key management
- **SimpleKeyManager**: Embedded key management for local development (no external dependencies)
- **Publisher**: RabbitMQ message publishing for asynchronous processing
@@ -305,9 +306,11 @@ modules:
config:
routingConfig: ./config/routing.yaml
schemaValidator:
id: schemavalidator
id: schemavalidator # or schemav2validator
config:
schemaDir: ./schemas
schemaDir: ./schemas # for schemavalidator
# type: url # for schemav2validator
# location: https://example.com/spec.yaml
steps:
- validateSign
- addRoute