0.14.0
Change Log
0.14.0 (2018-05-25)
Implemented enhancements:
- Multipart with no file causes InternalServerError #1400
- Generated configure file has confusing directions. #1384
- Quiet mode and log redirection #1370
- Custom templating: custom templates not associated with non-asset dependencies #1362
- How to generate a correct struct file name from "#/definitions/IPAM" #1344
- Shutdown method on server do not close the server #1316
- Enhancement: multiple instances of error messages for invalid spec #1307
- Allow adding/overriding Consumers and Producers #1301
- Invalid recursive type #1277
- Examples are not validated #1231
- Security definition order is not consistent between code generations #1214
- Security only supports "OR" logic, not "AND" #1089
- swagger validate: the need for better error messages #859
- max int64 and uint64 handling #581
- implement validation: unique scopes in security reference #14
Fixed bugs:
- No validation is called when the object referring to the array type parameter #1537
- Body params that are Arrays of Objects generate un-compilable code due to Validate method #1536
- Allof with a polymorphic type can have conflicting field names #1532
- Nested tuple is not validated #1487
- Generated validation method miss some fields #1479
- mixin removes securityDefinitions #1471
- Invalid code generation with AdditionalProperties #1453
- Simple aliased model type does not validate format #1437
- Generator does not support polymorphic and addl props in the same type. #1409
- responses with external $ref thrown nil pointer dereference #1406
- Required properties are not validated when additionalProperties: true is provided #1397
- No validation is called on body of array type parameter. #1392
- server generation chokes on flattened definitions #1388
- Default values for simple arrays generate code that does not compile #1378
- Codegen fixture [discriminators] produces code that doesn't compile #1376
- Generated server with form-data required=false evaluates file to nil #1373
- --dump-data no longer working #1356
--skip-validator
not work forswagger generate model
#1354- [feedback] format mac does not work in swagger:strfmt #1348
- Why not validate not required field even if it has format #1347
- JSON marshaling and unmarshaling broken for object containing array of polymorphic types. #1336
- Temporary files are not deleted on program termination #1331
- Invalid receiver error for a response of type
file
#1327 - ressource id type array leads to invalid generated code #1314
- Generated client parameter does not set request body for arbitrary object. #1309
- nested properties #1296
- embedded spec discards information from original spec #1281
- BodyParam of type array doesn't properly generate client code #1280
- swagger flatten generates invalid spec #1270
- Server generation: open 'xxx.json/yyy.json' no such file or directory [cascading $ref] #1259
- Server generation: object has no key [cascading $ref] #1258
- Type ref don't contain value check #1237
- Examples are not validated #1231
- Codegen generates invalid go code for
additionalProperties: true
#1198 - Invalid server code generated for file response #1195
- Adding length to a string with
uri
format will result i unworkable generated code #1191 - Client requires non-required field for validation. #1187
- Generated code does not handle 307 redirects properly #1170
- Problem with datetime format #1084
- Valid struct is not generated #1066
- Client generation fails with
object has no key "UserBase"
#1065 - Missing declarations and invalid code #1062
- dot symbol in the path cause problems #1050
- Missing fields in generated marshaler/unmarshaler when the object extends other objects #1042
- referenced path item cause an error #1034
- Response examples break definition references #1013
- incorrect API response if using allof ref #979
- swagger GSMA #951
- Generated server marks all parameters in response as required #910
- UUIDs do not appear to be validated #909
- Resolver does not expand relative path references #890
- Generator don't generates validation for embended models #866
- Non-compiling generated code when parameter is array type with enum validation and underscore in name #863
- handler in todo-list tutorial doesn't match the example code #858
- Multiple validation errors results in only one validation being shown in response #667
- Broken model code generated for polymorphic swagger types that have lists of non-concrete types. #607
- Missing Validate method on polymorphic/discriminator types #606
- Code generation error for binary stream producer, consumer #533
Closed issues:
swagger validate
fails to complete when referencing another file #1535- Go vendors dependencies: Cannot use a generated client in a server #1534
- Embedded spec is not flattened and won't work if there are external references. #1528
- How to print the error message in response sample using "swagger:response" tag #1526
- Response schema of type array being aliased #1524
- Validating a Standard spec #1522
- Client parameters don't set body when model is an enum #1513
- Spec generation doesn't honour the ",string" JSON struct tag #1510
- How to add static sections? #1509
- Type mismatch in flatten source #1504
- Not possible to hide individual struct fields #1497
- strfmt.Datetime how to omit when empty, nil or time.Time{} #1491
- Breaking change in Authenticator runtime #1488
- Request model is not loading in swagger #1476
- Unable to generate Swagger spec #1475
- Passing empty slice as parameter results in panic #1462
- malloc deadlock #1454
- Support for optional auth? #1446
- Optional SSN field performs no validation #1434
- Possible to have models in Subdirectory? #1428
- Do we have to specifically allow HEAD requests? #1426
- How to pass TLS structure from net.HttpRequest into my handler? #1423
- Undefined variable "filterI" presents after code generation when using nested "collectionFormat": "csv" #1414
- New feature to allow Parameters section #1404
- flatten command remove the empty security properties #1396
- Getting duplicate Definitions under 0.13 #1385
- Add Title generation for info part of spec. #1382
- package and file name contain underscore (after a change in go-swagger) #1380
- match for the market the limit of the new system with esi #1374
- Standard library packages not found #1359
- Why is vendor folder still version controlled? #1352
- Newbie needs help with wiring server-side handlers #1351
- The generate server command sorts the Operations but not the Models. #1349
- Compilation failure from pestore example #1346
- Improper UnmarshalJSON of polymorphic object contained in another object #1341
- Generated client ignores application/x-www-form-urlencoded and uses multipart. #1332
- can't compile generated server code for "file" in requests #1330
- Improper import for a models directory placed in a subdirectory #1326
- Make generated client take an
io.Reader
for parameters of typefile
#1325 - Additional struct inserted when using allOf and an inline definition compared to 0.9.0 #1323
- External References Aren't Expanded for Models #1322
- How to define multiple content-type for one API #1319
- Using go-swagger to generate other artifacts using custom templates not working from 0.12.0 #1312
- unit test output is too verbose #1299
- Master broken g8f4ad4c #1293
- Issue with folded paths #1292
- server generate : can't run custom template in operationGroups #1290
- .security in body must be of type array: "null" #1286
- Stream server problem #1278
- custom templating: need the target path as base import #1274
- improve error handling in generator #1272
- Feature Request: Renaming interface method from handle to actual method name #1271
- generate client errors out because of a nullable field in a definition #1265
- Command line option to specify copyright does not work in long mode #1263
- Code generation fails when swagger description property includes text "*/" #1254
- Changing SwaggerUI #1250
- Codegen gives SIGSEGV #1238
- Go-swagger v0.12.0 - invalid memory address or nil pointer dereference #1171
- Generating spec pulls in unused enumeration types from Protobuf-generated files #1149
- How the Response Sample was Executeing? #1144
- migrate to use net.Context #96
Merged pull requests:
- Update vendor - 2018-05-24 #1547 (fredbi)
- Allow white space sensitive markdown in comments. #1541 (dougnd)
- Polymorphic unmarshaller #1540 (fredbi)
- Body validations #1539 (fredbi)
- Ordering security definitions and requirements #1533 (fredbi)
- Update custom-server.md #1531 (arunvm123)
- revamp README #1529 (fredbi)
- Allow struct fields to be annotated with swagger:ignore #1527 (neilgarb)
- Fix complex anonymous additional properties #1521 (fredbi)
- Fix build deps #1515 (casualjim)
- fix writing enum parameters (#1513) #1514 (stevecookform3)
- Honour JSON ",string" directive when generating spec #1511 (neilgarb)
- Generated client parameter does not set request body for map types #1508 (koron)
- Lifts validations #1507 (fredbi)
- missing letter in message (possiby => possibly) #1500 (tmatias)
- support --skip-flatten for model generation #1498 (zhuangqh)
- Fix typos in docs/use/middleware.html #1492 (davidmi)
- Extend gen operation group #1482 (fredbi)
- Composed auth example #1481 (fredbi)
- Allow AND and Optional auth expressions #1478 (casualjim)
- server: generic interface body is never filled #1474 (koron)
- Fix panic on empty slice PathParam #1463 (marclop)
- FAQ update #1460 (fredbi)
- * Fix model build issue with AdditionalItems (serialization, validation) #1455 (fredbi)
- Acknowledge bug fixes and add CI fixtures. #1452 (fredbi)
- Vendor update as of 2018-03-09 #1451 (fredbi)
- Failure to parse multiform data results in HTTP 400 status #1449 (fredbi)
- Fixes #910 #1448 (fredbi)
- Acknowledge corrected issues with test cases #1447 (fredbi)
- Small refactoring of schemavalidator.gotmpl #1445 (fredbi)
- Enable validation for inline body parameters #1444 (fredbi)
- Fixing #1437 uncovered another issue on type aliasing. #1443 (fredbi)
- Add --skip-validation option to generate model command #1442 (fredbi)
- Added codegen fixtures to acknowledge fixed issues. #1441 (fredbi)
- Small refactoring on custom extensions usage #1440 (fredbi)
- Fixes #1437 [format validation in simple schemas] #1438 (fredbi)
- Document how to avoid "target must reside inside a location in the $GOPATH/src" using docker #1435 (tschaub)
- Vendor update #1424 (fredbi)
- Sort AllOf schemas for generation #1422 (fredbi)
- Added test case from issue#1414 as fixture #1421 (fredbi)
- Fixes issue #1084 #1420 (fredbi)
- Add test for #1198 which was fixed with #1397 #1411 (gregmarr)
- Support both discriminated and addl props in one type #1409 #1410 (gregmarr)
- docs: replace
httpkit
withruntime
#1407 (darkowlzz) - Added Parameters section to swagger:route #1405 (jucardi)
- Properties not validated w/additionalProperties #1397 #1403 (gregmarr)
- fixes writing client stream body #1399 (casualjim)
- Fix issues on simple params #1394 (fredbi)
- Support checking presence of path, header, and body parameters #1390 (ZachEddy)
- Make generate server sort the models #1349 #1387 (gregmarr)
- Add quiet mode and output redirection #1371 (fredbi)
- 1348 Add generation of validate on MAC format #1369 (fredbi)
- Add format validation on non required schema properties #1367 (fredbi)
- Fixed dump-data as json #1366 (fredbi)
- Added dependency resolution with repository on custom templates (not … #1365 (fredbi)
- Adding fix for issue #1341 #1364 (nickrmc83)
- Edit the todo tutorial for grammar and clarity #1363 (autarch)
- Added a flag to add more intialisms #1353 (diego-fu-hs)
- case sensitive import path on Windows #1345 (koron)
- Fix doc links #1343 (fredbi)
- Integration PR from validate: go-openapi/validate#42 (issue go-openapi/validate#44) #1340 (casualjim)
- 1331 - Delete temporary files #1333 (sebastien-rosset)
- support file as response schema #1329 (casualjim)
- update vendor #1324 (kreamyx)
- Add shutdown handling of graceful server on calls to Server.Shutdown #1320 (Crevil)
- Removed check of array type of body when writing to request #1318 (geret13)
- fix a typo in template #1317 (koron)
- move language specific baseImport check to LanguageOpts #1312 #1315 (elakito)
- client request parameter will set body param for array of interface{} #1313 (e-zhang)
- check for interface body param in client parameter WriteToRequest #1310 (e-zhang)
- 342 fix add fixture #1306 (fredbi)
- 1238-fix: add fixture in UT #1304 (fredbi)
- Enriched UT on template_repo.go #1303 (fredbi)
- Allow adding or overriding consumers and producers #1302 (dmjones500)
- 1299-fix-unit-test-verbosity #1300 (fredbi)
- 1290-fix server generation now supports operationGroups templates jus… #1298 (fredbi)
- Bump go-openapi/spec #1287 (databus23)
- Ref resolution changes in the swagger binary side #1285 (kreamyx)
- bump go-openapi/spec #1282 (databus23)
- Fix #1274 - add a new template variable in GenCommon. #1275 (fredbi)
- fix #1272 - Improve error handling in generator #1273 (fredbi)
* This Change Log was automatically generated by github_changelog_generator