api documentation for swagger-tools (v0.10.1)

Various tools for using and integrating with Swagger.

table of contents

  1. module swagger-tools
    1. function swagger-tools.initializeMiddleware (rlOrSO, resources, callback)
    2. object swagger-tools.helpers
    3. object swagger-tools.specs
    4. object swagger-tools.validators
  2. module swagger-tools.helpers
    1. function swagger-tools.helpers.createJsonValidator (schemas)
    2. function swagger-tools.helpers.formatResults (results)
    3. function swagger-tools.helpers.getErrorCount (results)
    4. function swagger-tools.helpers.getSpec (version, throwError)
    5. function swagger-tools.helpers.getSwaggerVersion (document)
    6. function swagger-tools.helpers.printValidationResults (version, apiDOrSO, apiDeclarations, results, printSummary)
    7. function swagger-tools.helpers.registerCustomFormats (json)
    8. object swagger-tools.helpers.swaggerOperationMethods
  3. module swagger-tools.validators
    1. function swagger-tools.validators.validateAgainstSchema (schemaOrName, data, validator)
    2. function swagger-tools.validators.validateArrayType (schema)
    3. function swagger-tools.validators.validateContentType (gPOrC, oPOrC, reqOrRes)
    4. function swagger-tools.validators.validateEnum (val, allowed)
    5. function swagger-tools.validators.validateMaxItems (val, maxItems)
    6. function swagger-tools.validators.validateMaxLength (val, maxLength)
    7. function swagger-tools.validators.validateMaxProperties (val, maxProperties)
    8. function swagger-tools.validators.validateMaximum (val, maximum, type, exclusive)
    9. function swagger-tools.validators.validateMinItems (val, minItems)
    10. function swagger-tools.validators.validateMinLength (val, minLength)
    11. function swagger-tools.validators.validateMinProperties (val, minProperties)
    12. function swagger-tools.validators.validateMinimum (val, minimum, type, exclusive)
    13. function swagger-tools.validators.validateMultipleOf (val, multipleOf)
    14. function swagger-tools.validators.validatePattern (val, pattern)
    15. function swagger-tools.validators.validateRequiredness (val, required)
    16. function swagger-tools.validators.validateSchemaConstraints (version, schema, path, val)
    17. function swagger-tools.validators.validateTypeAndFormat (version, val, type, format, allowEmptyValue, skipError)
    18. function swagger-tools.validators.validateUniqueItems (val, isUnique)

module swagger-tools

function swagger-tools.initializeMiddleware (rlOrSO, resources, callback)

module swagger-tools.helpers

function swagger-tools.helpers.createJsonValidator (schemas)

function swagger-tools.helpers.formatResults (results)

function swagger-tools.helpers.getErrorCount (results)

function swagger-tools.helpers.getSpec (version, throwError)

function swagger-tools.helpers.getSwaggerVersion (document)

function swagger-tools.helpers.printValidationResults (version, apiDOrSO, apiDeclarations, results, printSummary)

function swagger-tools.helpers.registerCustomFormats (json)

module swagger-tools.validators

function swagger-tools.validators.validateAgainstSchema (schemaOrName, data, validator)

function swagger-tools.validators.validateArrayType (schema)

function swagger-tools.validators.validateContentType (gPOrC, oPOrC, reqOrRes)

function swagger-tools.validators.validateEnum (val, allowed)

function swagger-tools.validators.validateMaxItems (val, maxItems)

function swagger-tools.validators.validateMaxLength (val, maxLength)

function swagger-tools.validators.validateMaxProperties (val, maxProperties)

function swagger-tools.validators.validateMaximum (val, maximum, type, exclusive)

function swagger-tools.validators.validateMinItems (val, minItems)

function swagger-tools.validators.validateMinLength (val, minLength)

function swagger-tools.validators.validateMinProperties (val, minProperties)

function swagger-tools.validators.validateMinimum (val, minimum, type, exclusive)

function swagger-tools.validators.validateMultipleOf (val, multipleOf)

function swagger-tools.validators.validatePattern (val, pattern)

function swagger-tools.validators.validateRequiredness (val, required)

function swagger-tools.validators.validateSchemaConstraints (version, schema, path, val)

function swagger-tools.validators.validateTypeAndFormat (version, val, type, format, allowEmptyValue, skipError)

function swagger-tools.validators.validateUniqueItems (val, isUnique)

[ this document was created with utility2 ]