1. 31 3月, 2018 1 次提交
    • K
      Filter `$$ref` from examples (#4392) · fd8274b3
      kyle 提交于
      * fix(dev-server): don't open localhost in a browser
      * tests: refactor model-example enzyme tests to be more isolated
      * tests: add failing sampleFromSchema tests for $$ref keys
      * tests: add additional test for user-created $$ref values
      * fix: create deeplyStripKey; use it to filter $$refs out of examples
      * tests: add cases for deeplyStripKey
      fd8274b3
  2. 30 3月, 2018 1 次提交
  3. 28 3月, 2018 2 次提交
  4. 25 3月, 2018 1 次提交
    • K
      v3.13.1 (#4367) · 9c8955ed
      kyle 提交于
      * fix: don't assign example if an example does not exist
      
      fixes #4319
      
      * v3.13.1
      
      * rebuild dist
      9c8955ed
  5. 24 3月, 2018 1 次提交
  6. 22 3月, 2018 1 次提交
  7. 17 3月, 2018 4 次提交
  8. 16 3月, 2018 2 次提交
  9. 15 3月, 2018 1 次提交
  10. 13 3月, 2018 1 次提交
    • S
      improve: show possible reasons when url fetch fails (#4295) · fb7f1255
      Scott O'Hara 提交于
      * improve: show possible reasons when url fetch fails
      * Only check for fail reasons if no HTTP status code
      * Check for mixed content errors first
      * Harmonise error messages
      * Set error source to 'fetch'
      * improve: hide loading validator image (#4287)
      * hide missing validator image
      * Render nothing if validator badge has not loaded/received errors
      * Revert style changes
      * Allow images with data scheme (#4305)
      * Add UnitTest for image
      allows image elements with https scheme
      * Test images with data scheme
      * Add allowedSchemesByTag
      * Fix error  Strings must use doublequote  quotes
      * Add empty div (#4236)
      if there are properties show an empty div
      * v3.12.1 (#4311)
      * v3.12.1
      * Rebuild dist for v3.12.1
      * Use window wrapper instead of direct reference
      * Add trailing period to error messages
      * improve readability
      fb7f1255
  11. 10 3月, 2018 1 次提交
    • K
      v3.12.1 (#4311) · 49e04666
      kyle 提交于
      * v3.12.1
      
      * Rebuild dist for v3.12.1
      49e04666
  12. 09 3月, 2018 2 次提交
  13. 07 3月, 2018 1 次提交
  14. 03 3月, 2018 7 次提交
    • K
      remove docker login email param (#4283) · 54153dd9
      kyle 提交于
      54153dd9
    • K
      v3.12.0 (#4282) · 83232dc2
      kyle 提交于
      * Use `parameterWithMeta` to get parameter data in <ParameterRow>
      
      * Prefer specPath when fetching resolved subtrees in OperationContainer
      
      * Add test for OAS3 callback rendering
      
      * Remove debugger statement
      
      * Pass base resolution URL directly to Swagger-Client subtree resolver
      
      * Remove accidental comment
      
      * Migrate additional options
      
      * Don't default to empty Map when getting subtree
      
      * fix(validateParam): check for ImList type before using count method
      
      * Use `replaceState` to update `urls.primaryName`
      
      This gives us the stateful URL we want, without:
      (a) refreshing the page on update
      (b) creating a long, useless history for the user
      (c) implying that browser history is two-way bound
          to Swagger-UI (it isn't, we don't have a router)
      
      * Add `fn.opsFilter` docs and internal API versioning note
      
      * restrict `x-example` functionality to Swagger 2.0
      
      * polish Authorize + Close buttons
      
      * add tachyons; use it for padding the new Reset button
      
      * v3.12.0
      
      * rebuild dist
      83232dc2
    • R
      improve: add button to reset example when user modifies request body (#4185) · ad43965d
      russell 提交于
      * Add a button to reset example when user modifys request body
      
      * lint fixes
      
      * Revert "lint fixes"
      
      This reverts commit 5395005ea775832045aee9bab4aaa538cd2f73ab.
      
      * reapply lint fixes
      ad43965d
    • C
      improve: add "Close" button to OAuth dialog, rename "Done" button elsewhere (#4212) · 861cc65c
      Charles Capps 提交于
      * Rename "Done" button to "Close", and add "Close" button OAuth dialog
      * move Close button to the right
      861cc65c
    • D
      feature: read the x-example field and use them as values (#3538) · 4900b110
      Davide Zipeto 提交于
      * Read the x-example field and use them as values
      Allow to show the value defined in the "x-example" field when pressing try-out. The "default" value will have the precedence over the x-example
      
      * Use `parameterWithMeta` to get parameter data in <ParameterRow>
      * Prefer specPath when fetching resolved subtrees in OperationContainer
      * Add test for OAS3 callback rendering
      * Remove debugger statement
      * Pass base resolution URL directly to Swagger-Client subtree resolver
      * Remove accidental comment
      * Migrate additional options
      * Don't default to empty Map when getting subtree
      * make "default" and "x-example" mutually exclusive
      "x-example" wins when both are present
      * limit "x-example" to non-body parameters
      4900b110
    • P
      improve: support for oneOf and anyOf in array sample (#4136) · b13b05e4
      Pavel Stefanov 提交于
      * Fixed oneOf and anyOf in array example
      
      * Added tests for sampleFromSchema for array type
      
      * Removed return example for array item
      b13b05e4
    • K
      fix: deeplinked operation resolution (#4281) · feef20dd
      kyle 提交于
      * Use `parameterWithMeta` to get parameter data in <ParameterRow>
      
      * Prefer specPath when fetching resolved subtrees in OperationContainer
      
      * Add test for OAS3 callback rendering
      
      * Remove debugger statement
      
      * Pass base resolution URL directly to Swagger-Client subtree resolver
      
      * Remove accidental comment
      
      * Migrate additional options
      
      * Don't default to empty Map when getting subtree
      feef20dd
  15. 02 3月, 2018 1 次提交
    • K
      fix: remote ref resolution regression (#4273) · 4fd7f1d0
      kyle 提交于
      * Use `parameterWithMeta` to get parameter data in <ParameterRow>
      
      * Prefer specPath when fetching resolved subtrees in OperationContainer
      
      * Add test for OAS3 callback rendering
      
      * Remove debugger statement
      
      * Pass base resolution URL directly to Swagger-Client subtree resolver
      
      * Remove accidental comment
      
      * Migrate additional options
      4fd7f1d0
  16. 01 3月, 2018 3 次提交
  17. 28 2月, 2018 3 次提交
  18. 27 2月, 2018 1 次提交
  19. 24 2月, 2018 4 次提交
    • K
      v3.11.0 (#4254) · e41067b4
      kyle 提交于
      * v3.11.0
      
      * Rebuild dist
      e41067b4
    • H
      fix: package.json to reduce vulnerabilities (#4224) · 558d0549
      Helder Sepulveda 提交于
      The following vulnerabilities are fixed with an upgrade:
      - https://snyk.io/vuln/npm:lodash:20180130
      
      Latest report for heldersepu/swagger-ui:
      https://snyk.io/test/github/heldersepu/swagger-ui
      558d0549
    • H
      fix: allow any guid (#4252) · d1779dc4
      Helder Sepulveda 提交于
      * Allow any guid
      
      * Add a few more GUID tests
      d1779dc4
    • K
      improve: lazy resolver (#4253) · ba1603a7
      kyle 提交于
      * default to empty `ImmutableMap` when grabbing op metadata
      * pass `errors` into JsonSchema components
      * Account for Immutable data structure in JavaScriptonSchema...
      ...and create empty Lists instead of Maps by default.
      * Pass ImmutableList through to JsonSchema child components
      * Add lazy resolving spec state extensions
      * TEMPORARY: disable conventional resolved spec
      * WIP
      * Use resolveSubtree in Operation display
      * Freebie: short-circuit Markdown component if it is given plaintext
      * NEW DEFAULT BEHAVIOR: `defaultModelsExpandDepth: 1` does not expand individual models
      * Render faked Model expander to trigger resolution
      * Baseline support for Editor lifecycles
      * Display operation summaries before the operation is resolved
      * Test migrations
      * WIP
      * Swagger2 TIO Body params
      * a bit of cleanup
      * Debounce string param inputs
      * Reach into unresolved operation for deprecated flag, if available
      * Fire subtree request outside of render
      * Remove debugging flags
      * Fix logical errors in spec statePlugins
      * TODOs become TODONEs!
      * Migrate deeplinking feature to non-resolved spec action
      * ESLint fixes
      * Reduce action dispatch volume; run resolver on next tick
      * Batch resolver requests; use batch progressive results in later iterations
      * Add loading states to Model and Operation views
      * Preserve object order; remove dupl. import; add warning for action
      * LINTER!
      * Use require to load SVG
             Works around Webpack weirdness
      ba1603a7
  20. 23 2月, 2018 1 次提交
    • K
      feat: lazy resolver (#4249) · ecf68817
      kyle 提交于
      * default to empty `ImmutableMap` when grabbing op metadata
      * pass `errors` into JsonSchema components
      * Account for Immutable data structure in JavaScriptonSchema...
          ...and create empty Lists instead of Maps by default.
      * Pass ImmutableList through to JsonSchema child components
      * Add lazy resolving spec state extensions
      * TEMPORARY: disable conventional resolved spec
      * WIP
      * Use resolveSubtree in Operation display
      * Freebie: short-circuit Markdown component if it is given plaintext
      * NEW DEFAULT BEHAVIOR: `defaultModelsExpandDepth: 1` does not expand individual models
      * Render faked Model expander to trigger resolution
      * Baseline support for Editor lifecycles
      * Display operation summaries before the operation is resolved
      * Test migrations
      * WIP
      * Swagger2 TIO Body params
      * a bit of cleanup
      * Debounce string param inputs
      * Reach into unresolved operation for deprecated flag, if available
      * Fire subtree request outside of render
      * Remove debugging flags
      * Fix logical errors in spec statePlugins
      * TODOs become TODONEs!
      * Migrate deeplinking feature to non-resolved spec action
      * ESLint fixes
      ecf68817
  21. 20 2月, 2018 1 次提交