github.com/6543-forks/go-swagger@v0.26.0/hack/codegen-fixtures.yaml (about)

     1  #
     2  # codegen CI configuration file
     3  #
     4  #- dir: {directory where to fetch specs (*.yaml, *.yml, *.json)}
     5  #  spec: {a specific spec file to fetch}
     6  #  skipped:
     7  #    knownFailure: true // won't generate anything
     8  #    knownValidationFailure: true // adds --skip-validation option
     9  #    knownClientFailure: true // won't generate a client
    10  #    knownExpandFailure: true // won't generate with expanded spec
    11  #    knownFlattenMinimalFailure: true // won't generate with --flatten=minimal but only with --flatten=full
    12  #
    13  #    Entries which resolve with same spec will be merged.
    14  #
    15  - dir: fixtures/bugs/1621
    16    spec: fixture-1621.yaml
    17  - dir: fixtures/bugs/1774
    18    spec: def_api.yaml
    19  - dir: fixtures/bugs/1767
    20    spec: fixture-1767.yaml
    21  - dir: fixtures/bugs/1260
    22    spec: fixture-realiased-types.yaml
    23  - dir: fixtures/bugs/1260
    24    spec: test3-bis-swagger.yaml
    25  - dir: fixtures/bugs/1260
    26    spec: test3-swagger.yaml
    27  - dir: fixtures/bugs/1260
    28    spec: test3-ter-swagger-flat.json
    29  - dir: fixtures/bugs/1260
    30    spec: test3-ter-swagger.yaml
    31  - dir: fixtures/bugs/1851
    32    spec: fixture-1851.yaml
    33  - dir: fixtures/bugs/2092
    34    spec: fixture-2092.yaml
    35  - dir: fixtures/codegen
    36  - dir: fixtures/bugs/909
    37  - dir: fixtures/bugs/1437
    38  - dir: fixtures/bugs/1314
    39  - dir: fixtures/bugs/1062
    40    spec: eve-online-esi.json
    41    skipped:
    42      knownClientFailure: true  # <- bug in client with non-string nested CollectionItems
    43  - dir: fixtures/bugs/1392
    44  - dir: fixtures/bugs/1277
    45  - dir: fixtures/bugs/1536
    46  - dir: fixtures/bugs/1487
    47  - dir: fixtures/bugs/1571
    48  - dir: fixtures/bugs/957
    49  - dir: fixtures/bugs/1614
    50  - dir: fixtures/bugs/931
    51  - dir: fixtures/bugs/1683
    52  - dir: fixtures/bugs/1796
    53  - dir: fixtures/bugs/1839
    54  - dir: fixtures/bugs/1719
    55  - dir: fixtures/bugs/1859
    56  - dir: fixtures/bugs/1490
    57  - dir: fixtures/bugs/973
    58    skipped:
    59      skipModel: true  # no models to generate here
    60  - dir: fixtures/bugs/1020
    61  - dir: fixtures/bugs/1339
    62  - dir: fixtures/bugs/1893
    63  - dir: fixtures/bugs/1518
    64  - dir: fixtures/bugs/1993
    65  - dir: fixtures/bugs/1937
    66  - dir: fixtures/bugs/2050
    67  - dir: fixtures/bugs/1557
    68  - dir: fixtures/bugs/1663
    69  - dir: fixtures/bugs/2136
    70    skipped:
    71      knownClientFailure: true  # <- bug in client with non-string nested CollectionItems
    72  - dir: fixtures/bugs/2111
    73  - dir: fixtures/bugs/2223
    74  #
    75  # The following specs fail to generate:
    76  # - existing-model.yml requires pregeneration (not supported yet by this script)
    77  # - issue72: model works with --skip-validation. Invalid spec (duplicate operationID)
    78  # - todolist.simple.yml: invalid default values put on purpose for UT (provided fixed version for testing)
    79  # - fixture-basetypes.yaml: exhibits some edge case failures with discriminator (e.g. using a base type in tuple...)
    80  # - fixture-polymorphism.yaml: idem
    81  - dir: fixtures/codegen
    82    spec: existing-model.yml
    83    skipped:
    84      knownFailure: true
    85  - dir: fixtures/codegen
    86    spec: issue72.json
    87    skipped:
    88      knownFailure: true
    89  - dir: fixtures/codegen
    90    spec: todolist.simple.yml
    91    skipped:
    92      knownFailure: true
    93  - dir: fixtures/bugs/1487
    94    spec: fixture-basetypes.yaml
    95    skipped:
    96      knownFailure: true
    97  - dir: fixtures/bugs/1487
    98    spec: fixture-polymorphism.yaml
    99    skipped:
   100      knownFailure: true
   101  # The following ones requires some checks to be skipped:
   102  # - azure-text-analyis.json: works with --skip-validation. Invalid specification with duplicate property in allOf construct (provided fixed version for testing)
   103  # - swagger-gsma.json: idem
   104  - spec: todolist.enums.yml
   105    skipped:
   106      knownValidationFailure: true
   107  - spec: todolist.enums.flattened.json
   108    skipped:
   109      knownValidationFailure: true
   110  - spec: todolist.models.yml
   111    skipped:
   112      knownValidationFailure: true
   113  - spec: todolist.schemavalidation.yml
   114    skipped:
   115      knownValidationFailure: true
   116  - spec: azure-text-analyis.json
   117    skipped:
   118      knownValidationFailure: true
   119  - spec: swagger-gsma.json
   120    skipped:
   121      knownValidationFailure: true
   122  - spec: fixture-844-variations.yaml
   123    skipped:
   124      knownValidationFailure: true
   125  - spec: fixture-allOf.yaml
   126    skipped:
   127      knownValidationFailure: true
   128  - spec: fixture-errors.yaml
   129    skipped:
   130      knownValidationFailure: true
   131  - spec: fixture-itching.yaml
   132    skipped:
   133      knownValidationFailure: true
   134  - spec: fixture-tuple.yaml
   135    skipped:
   136      knownValidationFailure: true
   137  - spec: fixture-simple-tuple.yaml
   138    skipped:
   139      knownValidationFailure: true
   140  - spec: todolist.arrayform.yml
   141    skipped:
   142      knownClientFailure: true
   143  - spec: todolist.arrayquery.yml
   144    skipped:
   145      knownClientFailure: true
   146  - spec: todolist.url.basepath.yml
   147    skipped:
   148      knownClientFailure: true
   149  - spec: todolist.url.simple.yml
   150    skipped:
   151      knownClientFailure: true
   152  - spec: swagger-codegen-tests.json
   153    skipped:
   154      knownClientFailure: true
   155  - spec: fixture-1414.json
   156    skipped:
   157      knownClientFailure: true
   158  - spec: fixture-909-3.yaml
   159    skipped:
   160      knownClientFailure: true
   161  - spec: fixture-909-4.yaml
   162    skipped:
   163      knownClientFailure: true
   164  - spec: fixture-909-5.yaml
   165    skipped:
   166      knownClientFailure: true
   167  - spec: fixture-909-6.yaml
   168    skipped:
   169      knownClientFailure: true
   170  - spec: gentest2.yaml
   171    skipped:
   172      knownClientFailure: true
   173  - spec: gentest3.yaml
   174    skipped:
   175      knownClientFailure: true
   176  - spec: gentest.yaml
   177    skipped:
   178      knownClientFailure: true
   179  - spec: fixture-1437-4.yaml
   180    skipped:
   181      knownClientFailure: true
   182  - spec: fixture-1392-2.yaml
   183    skipped:
   184      knownClientFailure: true
   185  - spec: fixture-1392-3.yaml
   186    skipped:
   187      knownClientFailure: true
   188  # known fixtures not supporting expand mode (not including the discriminator case).
   189  # Normally, this is because of duplicate names constructed during codegen of anonymous structures.
   190  # This should be solved with proper analysis of names before codegen.
   191  - spec: bitbucket.json
   192    dir: fixtures/codegen
   193    skipped:
   194      knownExpandFailure: true
   195  - spec: todolist.enums.flattened.json
   196    dir: fixtures/codegen
   197    skipped:
   198      knownExpandFailure: true
   199  - spec: fixture-1479.yaml
   200    dir: fixtures/bugs/1479
   201    skipped:
   202      knownExpandFailure: true
   203  - spec: fixture-1767.yaml
   204    dir: fixtures/bugs/1767
   205    skipped:
   206      knownExpandFailure: true
   207      knownFlattenMinimalFailure: true
   208  - dir: fixtures/bugs/2306
   209    skipped:
   210      skipModel: true
   211  - dir: fixtures/bugs/2342
   212    skipped:
   213      skipModel: true