Skip to content

WIP: GoDaddy Contributions - #110

Closed
shelbys wants to merge 27 commits into
strongloop:masterfrom
shelbys:master
Closed

WIP: GoDaddy Contributions#110
shelbys wants to merge 27 commits into
strongloop:masterfrom
shelbys:master

Conversation

@shelbys

@shelbys shelbys commented Sep 30, 2014

Copy link
Copy Markdown
Contributor

Broader and deeper support for Swagger capabilities, including 1.2
Upgraded to generate specs based on Swagger 1.2
Add indication of response being a collection
Added description for 200 responseMessage
Added missing docs for errors and notes
Added support for automatically re-joining long strings split into arrays in specs for description, notes, and message values
Added support for errors property to specify possible errors that can be returned
Added support for multiple responseMessages from Swagger 1.2
Added support for notes per API
Added support for primitives in StatusCodeView
Added support for return types as Arrays instead of Strings
Avoid adding empty description for each API
Changed to possibly pull model description from ctor.settings
Corrected addDynamicBasePathGetter() to honor x-forwarded-proto in order to support reverse-proxy from https to http
Corrected default for consumes+produces
Corrected generateModelDefinition() to scan for model references in nested models, remote returns, and errors
Corrected prepareDataType() to handle collections and nesting, and changed to always and only use responseMessages

Automatic conversion of response bodies to XML, when requested via Accept: header
Added error-handling when unable to generate XML
Added support for automatically converting to XML, if requested via Accept
Better support for alternate Content-Types
Configured pretty-printing and date conversion to ISO for XML responses
Corrected XML handling when root is an Array

shelbys and others added 23 commits July 2, 2014 10:23
* upstream/master:
  Bump version and update deps
  Skip properties that are shared model classes
  Fix typo
  Fix typo in doc link

Conflicts:
	package.json
…der to support reverse-proxy from https to http
* upstream/master:
  2.0.3
  Improve shared class and method docs
  Bump version
  Provide an option to configure if stack trace should be disabled
  Remove stack traces from production errors.
  Update test case to remove usage of deprecated express apis
  2.0.1
  rest: fix RestMethod.isReturningArray
  2.0.0
  Remove ext/swagger
  2.0.0-beta4
  2.0.0-beta3
  Exclude body-parser from the browser bundle
  Remove duplicate dep
  Bump version
  Add more tests and use eql for readability
  Add more comments
  Sort the routes so that methods can be resolved in order
  Upgrade to express 4.x

Conflicts:
	ext/swagger.js
	package.json
	test/swagger.test.js
* upstream/master:
  Fix the broken sample
Upgraded to v2 and ported changes from fork
@slnode

slnode commented Sep 30, 2014

Copy link
Copy Markdown

Can one of the admins verify this patch? To accept patch and trigger a build add comment ".ok\W+to\W+test."

* upstream/master: (30 commits)
  Update contribution guidelines
  2.4.0
  Add sharedClass.disableMethod()
  2.3.0
  Add prototype shared method tests
  Fix http-invocation test
  Support prototype methods via HttpInvocation
  2.2.2
  Remove stupid assert global
  Fix missing assert
  Bump version
  Set up CORS hander for error responses
  Bump version
  Add a test for request header param
  Allows implicit header param
  2.1.1
  Check the name type
  Add support for header param
  Allow args of complex type without validation
  Implement normalizeHttpPath
  ...

Conflicts:
	lib/http-context.js
	package.json
@ritch

ritch commented Oct 9, 2014

Copy link
Copy Markdown
Member

All the changes listed in the description sound great.

Comment thread lib/http-context.js

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use Array.isArray()

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ritch - I vaguely remember there being a reason Array.isArray() didn't work, but I can't remember for sure now

@ritch

ritch commented Oct 9, 2014

Copy link
Copy Markdown
Member

Moving this into smaller pull requests so we can land features that look good already.

@bajtos

bajtos commented Oct 10, 2014

Copy link
Copy Markdown
Member

@ritch please cross-link the smaller pull requests to this PR for posterity.

@ritch ritch added #review and removed #wip labels Oct 22, 2014
@ritch ritch closed this Oct 23, 2014
@ritch ritch removed the #review label Oct 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants