Home

Awesome

AWS Model Validators

Provides validators for the various AWS JSON model formats.

Basic Usage

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'
)

Supported Model Formats

ModelVersionValidator
apiv2Aws::ModelValidators::ApiV1
paginatorsv1Aws::ModelValidators::PaginatorsV1
waitersv2Aws::ModelValidators::WaitersV2
resourcesv1Aws::ModelValidators::ResourcesV1

Todo

License

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.