Skip to content
This repository has been archived by the owner on Jan 19, 2024. It is now read-only.

Fixes #130: Add tests to cover RAML v1.0.1 patch #131

Merged
merged 24 commits into from
Apr 9, 2021

Conversation

postatum
Copy link
Contributor

Fixes #130: Add tests to cover RAML v1.0.1 patch

Each commit description contains a link to related github issue from RAML v1.0.1 patch.

manifest.json Show resolved Hide resolved
@jstoiko
Copy link
Contributor

jstoiko commented Jun 15, 2020

Each commit description contains a link to related github issue from RAML v1.0.1 patch.

@postatum: can we have a bullet list of all GH v1.0.1 issues with an enumeration of each corresponding test and links to those tests. E.g. - issue raml-org/raml-spec#123: test 1, test 2, test 3

@postatum
Copy link
Contributor Author

postatum commented Jun 16, 2020

@jstoiko

Added tests for:

  • Clarify how to resolve !includes and libraries inside Overlay and Extension fragments raml-spec#719:
    • tests/raml-1.0/Fragments/extension-relative-include/extensions/invalid-paths-relative-to-base.raml link
    • tests/raml-1.0/Fragments/extension-relative-include/extensions/valid-paths-relative-to-extension.raml link
    • tests/raml-1.0/Overlays/relative-include-lib/overlays/invalid-paths-relative-to-base.raml link
    • tests/raml-1.0/Overlays/relative-include-lib/overlays/valid-paths-relative-to-overlay.raml link
  • Clarify that libraries may be used in any type of fragment raml-spec#718:
    • tests/raml-1.0/Libraries/used-by-annotationtypedeclaration/valid-fragment.raml link
    • tests/raml-1.0/Libraries/used-by-annotationtypedeclaration/valid-spec.raml link
    • tests/raml-1.0/Libraries/used-by-api-1/invalid-uses-inexisting-lib.raml link
    • tests/raml-1.0/Libraries/used-by-api-1/valid.raml link
    • tests/raml-1.0/Libraries/used-by-api-2/invalid-uses-non-lib.raml link
    • tests/raml-1.0/Libraries/uses-02/valid-indirect-use.raml → tests/raml-1.0/Libraries/used-by-api-2/valid-indirect-use.raml link
    • tests/raml-1.0/Libraries/used-by-datatype/valid-spec.raml link
    • tests/raml-1.0/Libraries/used-by-documentationitem/valid-fragment.raml link
    • tests/raml-1.0/Libraries/used-by-documentationitem/valid-spec.raml link
    • tests/raml-1.0/Libraries/used-by-extension/valid-fragment.raml link
    • tests/raml-1.0/Libraries/used-by-extension/valid-spec.raml link
    • tests/raml-1.0/Libraries/used-by-library/valid-fragment.raml link
    • tests/raml-1.0/Libraries/used-by-library/valid-spec.raml link
    • tests/raml-1.0/Libraries/used-by-namedexample/valid-fragment.raml link
    • tests/raml-1.0/Libraries/used-by-namedexample/valid-spec.raml link
    • tests/raml-1.0/Libraries/used-by-overlay/valid-fragment.raml link
    • tests/raml-1.0/Libraries/used-by-overlay/valid-spec.raml link
    • tests/raml-1.0/Libraries/used-by-resourcetype/valid-fragment.raml link
    • tests/raml-1.0/Libraries/used-by-resourcetype/valid-spec.raml link
    • tests/raml-1.0/Libraries/used-by-securityscheme/valid-fragment.raml link
    • tests/raml-1.0/Libraries/used-by-securityscheme/valid-spec.raml link
    • tests/raml-1.0/Libraries/used-by-trait/valid-fragment.raml link
    • tests/raml-1.0/Libraries/used-by-trait/valid-spec.raml link
  • Specify that RAML documents MUST be valid YAML 1.2 documents raml-spec#715:
    • tests/raml-1.0/Root/yaml-12-compliancy/valid.raml link
  • Clarify requirement level of the pattern facet for type string raml-spec#714:
    • tests/raml-1.0/Types/string-pattern-validation/invalid-does-not-match-pattern.raml link
    • tests/raml-1.0/Types/string-pattern-validation/valid-example-matches-pattern.raml link
  • Clarify usage of enum in a union type raml-spec#712:
    • tests/raml-1.0/Types/Type Expressions/object-union-with-enum/invalid-incorrect-enum-types.raml link
    • tests/raml-1.0/Types/Type Expressions/object-union-with-enum/valid-correct-enum-types.raml link
    • tests/raml-1.0/Types/Type Expressions/scalar-union-with-enum/invalid-incorrect-enum-types.raml link
    • tests/raml-1.0/Types/Type Expressions/scalar-union-with-enum/valid-correct-enum-types.raml link
  • Clarify use of type-specific facets in a union type raml-spec#711:
    • tests/raml-1.0/Types/Type Expressions/union-with-facets/invalid-not-supported-facet.raml link
    • tests/raml-1.0/Types/Type Expressions/union-with-facets/valid-custom-facet.raml link
    • tests/raml-1.0/Types/Type Expressions/union-with-facets/valid-supported-facet.raml link
  • Clarify how to infer/determine the default type for ALL built-in types raml-spec#710:
    • tests/raml-1.0/Types/determine-default-types/valid-array.raml link
    • tests/raml-1.0/Types/determine-default-types/valid-file.raml link
    • tests/raml-1.0/Types/determine-default-types/valid-integer.raml link
    • tests/raml-1.0/Types/determine-default-types/valid-number.raml link
    • tests/raml-1.0/Types/determine-default-types/valid-object.raml link
    • tests/raml-1.0/Types/determine-default-types/valid-request-body-media-type.raml link
    • tests/raml-1.0/Types/determine-default-types/valid-request-body.raml link
    • tests/raml-1.0/Types/determine-default-types/valid-response-body-media-type.raml link
    • tests/raml-1.0/Types/determine-default-types/valid-response-body.raml link
    • tests/raml-1.0/Types/determine-default-types/valid-string-type-not-specified.raml link
    • tests/raml-1.0/Types/determine-default-types/valid-string-with-pattern.raml link
  • Clarify formatting of examples raml-spec#709:
    • tests/raml-1.0/Examples/mix-json-xml/invalid-incorrect-examples.raml link
    • tests/raml-1.0/Examples/mix-json-xml/valid.raml link
    • tests/raml-1.0/Examples/mix-raml-json/invalid-incorrect-examples.raml link
    • tests/raml-1.0/Examples/mix-raml-json/valid.raml link
    • tests/raml-1.0/Examples/mix-raml-xml/invalid-incorrect-examples.raml link
    • tests/raml-1.0/Examples/mix-raml-xml/valid.raml link
    • tests/raml-1.0/Examples/multiple-json-examples/invalid-example-structure.raml link
    • tests/raml-1.0/Examples/multiple-json-examples/valid.raml link
    • tests/raml-1.0/Examples/multiple-with-strict-parameter/invalid-strict-true.raml link
    • tests/raml-1.0/Examples/multiple-with-strict-parameter/valid-strict-false.raml link
    • tests/raml-1.0/Examples/multiple-xml-examples/invalid-wrong-example-value.raml link
    • tests/raml-1.0/Examples/multiple-xml-examples/valid.raml link
    • tests/raml-1.0/Examples/single-json-example/invalid-example-structure.raml link
    • tests/raml-1.0/Examples/single-json-example/valid.raml link
    • tests/raml-1.0/Examples/single-with-strict-parameter/invalid-strict-true.raml link
    • tests/raml-1.0/Examples/single-with-strict-parameter/valid-strict-false.raml link
    • tests/raml-1.0/Examples/single-xml-example/invalid-wrong-example-value.raml link
  • Clarify nilable property alternative syntax raml-spec#708:
    • tests/raml-1.0/Types/nilable-type/invalid-prefixed-used-in-array.raml link
    • tests/raml-1.0/Types/nilable-type/invalid-prefixed-used-in-union-array.raml link
    • tests/raml-1.0/Types/nilable-type/invalid-prefixed-used-in-union.raml link
    • tests/raml-1.0/Types/nilable-type/valid-nil-union.raml link
    • tests/raml-1.0/Types/nilable-type/valid-question-mark-suffix.raml link
    • tests/raml-1.0/EdgeCases/type-with-trailing-question-mark/invalid-notnilable-missing-value.raml link
    • tests/raml-1.0/EdgeCases/type-with-trailing-question-mark/valid-nilables-with-values.raml link
    • tests/raml-1.0/EdgeCases/type-with-trailing-question-mark/valid.raml link
  • Clarify use of trailing question mark raml-spec#707:
    • tests/raml-1.0/Methods/method-question-mark/valid.raml link
    • tests/raml-1.0/Methods/query-param-non-required/valid.raml link
  • Clarify that references to inner elements only apply to JSON Schema / XSD raml-spec#720:
    • tests/raml-1.0/Types/include-json-schema-element/invalid-pointer-nowhere.raml link
    • tests/raml-1.0/Types/include-json-schema-element/valid.raml link
  • Clarify that value of is in Applying Traits MUST be array raml-spec#724:
    • tests/raml-1.0/Traits/is-node-format/invalid-is-single-value.raml link
    • tests/raml-1.0/Traits/is-node-format/valid-is-array.raml link
  • Clarify whether resource type and trait parameters can be used in modularization raml-spec#730:
    • tests/raml-1.0/Libraries/used-by-resourcetype/invalid-fragment-param-in-uses.raml link
    • tests/raml-1.0/Libraries/used-by-resourcetype/invalid-spec-param-in-uses.raml link
    • tests/raml-1.0/Libraries/used-by-resourcetype/valid-spec.raml link
    • tests/raml-1.0/Libraries/used-by-trait/invalid-fragment-param-in-uses.raml link
    • tests/raml-1.0/Libraries/used-by-trait/invalid-spec-param-in-uses.raml link
    • tests/raml-1.0/ResourceTypes/include-parameter/invalid-param-in-include-path.raml link
    • tests/raml-1.0/Traits/with-params/example.json link
    • tests/raml-1.0/Traits/with-params/invalid-param-in-include-path.raml link

Notes:

@jstoiko jstoiko marked this pull request as draft July 15, 2020 20:15
@jstoiko jstoiko changed the title Fixes #130: Add tests to cover RAML v1.0.1 patch (WIP) Fixes #130: Add tests to cover RAML v1.0.1 patch Sep 2, 2020
@jstoiko jstoiko marked this pull request as ready for review September 2, 2020 22:45
@jstoiko jstoiko self-requested a review September 2, 2020 22:46
@jstoiko jstoiko merged commit 6051451 into develop Apr 9, 2021
@jstoiko jstoiko deleted the i130_add_raml101_tests branch April 9, 2021 22:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants