Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extract/Expose schemaToHTML (and others) #486

Merged
merged 6 commits into from Jul 23, 2015

Conversation

ponelat
Copy link
Member

@ponelat ponelat commented Jun 12, 2015

Connected to swagger-api/swagger-ui#1368

Well, this is the first step in getting the rendering/markup of swagger-js schems out of swagger-js.

It is a big merge.

  • extract all markup logic from lib/types/model.js, and all markup logic from lib/helpers.js into its own file...lib/schema-markup.js
  • remove references to Model from those methods above.

schema-markup.js is a now standalone (uses a touch of lib/helpers.js) which renders markup and JSON samples from a schema and/or a Model object.

From here on, we can move schema-markup into swagger-ui and perhaps make it into a collection of handlebar templates.

@fehguy fehguy merged commit f3588bd into swagger-api:develop_2.0 Jul 23, 2015
@webron webron added this to the v2.1.2 milestone Jul 31, 2015
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.

None yet

3 participants