Validation
YAML validation without storage. Validate definition content against schemas before creating.
1 method
client.validation.validate()
Validate YAML content against the definition schema without creating a definition. Returns validation errors if any.
Parameters
typerequiredstringDefinition type to validate against.
agentcommandworkflowpipelineyamlrequiredstringYAML content to validate (max 100KB).
Return Fields
validrequiredbooleanWhether the YAML is valid.
errorsoptionalValidationError[]Array of validation errors with path and message.
validate(type: DefinitionType, yaml: string): Promise<ValidationResult>typescript
import { RegistryClient } from '@uluops/registry-sdk';
const client = new RegistryClient({
apiKey: 'ulr_your-api-key',
});
const result = await client.validation.validate('agent', 'name: example-agent\nversion: 1.0.0');
console.log(result.valid);Response Type
// Promise<ValidationResult>
{
valid: boolean;
errors?: ValidationError[];
}