Provides validators for the various AWS JSON model formats.
require 'aws-model-validators'
# validating an API model
errors = Aws::ModelValidators::ApiV2.validate(api: '/path/to/api.json')
# validating a resource model requires the API and waiter models
errors = Aws::ModelValidators::ResourcesV1.new.validate(
resources: '/path/to/resources.json',
api: '/path/to/api.json',
waiters: '/path/to/waiters.json'
)
Model | Version | Validator |
---|---|---|
api | v2 | Aws::ModelValidators::ApiV1 |
paginators | v1 | Aws::ModelValidators::PaginatorsV1 |
waiters | v2 | Aws::ModelValidators::WaitersV2 |
resources | v1 | Aws::ModelValidators::ResourcesV1 |
- Finish JSON schemas for api, paginators, and waiters.
- Expand validation tests for resources
This library is distributed under the Apache License, version 2.0
copyright 2015. amazon web services, inc. all rights reserved.
licensed under the apache license, version 2.0 (the "license");
you may not use this file except in compliance with the license.
you may obtain a copy of the license at
http://www.apache.org/licenses/license-2.0
unless required by applicable law or agreed to in writing, software
distributed under the license is distributed on an "as is" basis,
without warranties or conditions of any kind, either express or implied.
see the license for the specific language governing permissions and
limitations under the license.