1. 11 9月, 2020 2 次提交
  2. 30 7月, 2020 1 次提交
  3. 18 7月, 2020 1 次提交
  4. 16 7月, 2020 1 次提交
  5. 07 7月, 2020 1 次提交
  6. 16 6月, 2020 2 次提交
  7. 11 6月, 2020 4 次提交
  8. 30 5月, 2020 1 次提交
  9. 04 11月, 2019 1 次提交
    • J
      fix: code highlight styles are now only applied `pre.microlight` (#5673) · e8266a3c
      Jamie Peabody 提交于
      * patch(#5672): code highlight styles are now only applied to pre blocks that have the class pre.microlight
      
      * fixed pre style appied to .request-url
      
      * fixed response-headers and request-duration pre blocks
      
      * made pre.microlight class as per review
      
      * added microlight class to appropriate pre and added tests
      e8266a3c
  10. 04 7月, 2019 1 次提交
  11. 30 6月, 2019 1 次提交
    • K
      feat: Multiple Examples for OpenAPI 3 Parameters, Request Bodies, and Responses (via #5427) · 23d7260f
      kyle 提交于
      * add opt-in Prettier config
      
      * remove legacy `examples` implementation
      
      * create ExamplesSelect
      
      * support `Response.examples` in OpenAPI 3
      
      * create response controls group
      
      * prettier reformat
      
      * prepare to break up Parameters
      
      * reunify Parameters and OAS3 Parameters
      
      * Parameter Examples
      
      * Example component
      
      * handle parameter value stringification correctly
      
      * FOR REVIEW: add prop for controlling Select
      
      * use regular header for param examples in Try-It-Out
      
      * manage active examples member via Redux
      
      * Request Body Try-It-Out examples
      
      * remove special Response description styling
      
      * omit Example value display in Try-It-Out
      
      * support disabled text inputs in JsonSchemaForm
      
      * Example.omitValue => Example.showValue
      
      * ExamplesSelectValueRetainer
      
      * styling for disabled inputs
      
      * remove console.log
      
      * support "Modified Values" in ExamplesSelect
      
      * remove Examples component
      (wasn't used anywhere)
      
      * use ParameterRow.getParamKey for active examples member keying
      
      * split-rendering of examples in ParameterRow
      
      * send disabled prop to JsonSchemaForm
      
      * use content type to key request body active examples members
      
      * remove debugger
      
      * rewire RequestBodyEditor to be a controlled component
      
      REVIEW: does this have perf implications?
      
      * trigger synthetic onSelect events in ExamplesSelect
      
      * prettier updates
      
      * remove outdated Examples usage in RequestBody
      
      * don't handle examples changes in ESVR
      
      * make RequestBodyEditor semi-controlled
      
      * don't default to an empty Map for request bodies
      
      * add namespaceKey to ESVR for state mgmt
      
      * don't key RequestBody activeExampleKeys on media type
      
      * tweak ESVR isModifiedValueSelected calculation
      
      * add trace class to ExamplesSelect
      
      * remove usage of ESVR.currentNamespace
      
      * reset to first example if currentExampleKey is invalid
      
      * add default values to RequestBody rendering
      
      * stringify things in ESVR
      
      * avoid null select value (silences React warning)
      
      * detect user inputs that match any examples member's value
      
      * add trace class for json-schema-array
      
      * shallowly convert namespace state, to preserve Immutable stucts in state
      
      * stringify RBE values; don't trim JSON in editor
      
      * match user input to an example when non-primitives are expressed in state as strings
      
      * update Cypress
      
      * don't apply sample values in JsonSchema_Object
      
      * support disabling all JsonSchemaForm subcomponents
      
      * Core tests
      
      * style changes to accomodate Examples
      
      * fix version-checking error in Response
      
      * disable SCU for Responses
      
      * don't stringify Select values
      
      * ModelExample: default to Model tab if no example is available; provide a default no example message
      
      * don't trim JSON ParamBody inputs
      
      * read directly from 2.0 Response.schema instead of inferring a value
      
      * show current Example information in RequestBody
      
      * show label for Examples dropdown by default
      
      * rework Response content ordering
      
      * style disabled textareas like other read-only blocks
      
      * meta: fix sourcemaps
      
      * refactor ESVR setNameForNamespace
      
      * protect second half of ternary expession
      
      * cypress: `select.examples-select` => `.examples-select > select`
      
      * clarify ModelExample.componentWillReceiveProps
      
      * add gates/defaults to prevent issues in very bare-boned documents
      
      * fix test block organization problem
      
      * simplify RequestBodyEditor interface
      
      * linter fixes
      
      * prettier updates
      
      * use plugin system for new components
      
      * move ME Cypress helpers to other file
      23d7260f
  12. 15 3月, 2019 1 次提交
  13. 16 2月, 2019 1 次提交
  14. 22 12月, 2018 1 次提交
  15. 15 12月, 2018 1 次提交
  16. 24 11月, 2018 1 次提交
  17. 12 11月, 2018 1 次提交
  18. 29 9月, 2018 1 次提交
  19. 07 9月, 2018 1 次提交
  20. 09 8月, 2018 1 次提交
  21. 04 8月, 2018 1 次提交
    • K
      feature: `allowEmptyValue` controls (#4788) · 87296702
      kyle 提交于
      * add baseline tests
      
      * coerce empty strings to null when updating parameter values
      
      * add ParameterIncludeEmpty
      
      * add redux management for empty parameter value inclusion state
      
      * use name+in keying for state management instead of hash keying
      
      * update new redux method usages to name+in keying
      
      * coerce empty Immutable iterables in onChangeWrapper
      
      * OAS3 tests & support
      
      * add included empty parameters to requests before dispatching to Swagger Client
      
      * make empty inclusion interface prettier
      
      * add tests for #4587
      
      * linter fixes
      
      * check for truthy value before reaching into property
      87296702
  22. 27 7月, 2018 1 次提交
  23. 06 7月, 2018 1 次提交
  24. 23 6月, 2018 1 次提交
  25. 02 6月, 2018 1 次提交
    • K
      feat(rendering): gate rendering based on valid version identifiers (#4614) · a03c1278
      kyle 提交于
      * create VersionPragmaFilter component
      
      * use VersionPragmaFilter in BaseLayout
      
      * tighten version idenitifier constraints
      
      * handle case where user specifies a valid `swagger` and `openapi` field
      
      * add traceable class names for each message
      
      * add tests
      
      * linter fixes!
      
      * UNRELATED CHANGE: remove travis short-circuit
      
      * add bypass switch to VersionPragmaFilter
      a03c1278
  26. 17 5月, 2018 1 次提交
    • K
      feature: OAS3 object parameter support (#4563) · c1007a28
      kyle 提交于
      * render suitable interface for `type: object` parameters
      
      * validate OAS3 object parameters correctly
      
      * display parameter validation errors
      
      * remove irrelevant css classes
      
      * rm comment
      
      * fix failing tests
      
      * add validateParam tests
      
      * add enzyme tests for object parameter rendering
      
      * run actual tests first
      c1007a28
  27. 14 4月, 2018 1 次提交
  28. 13 4月, 2018 1 次提交
    • G
      enhance: scrollable + downloadable `HighlightCode` (#4397) · 27955183
      Giancarlo Klemm Camilo 提交于
      * Auto hidding content that is longer than 600 characters long.
      
      * Added basic downloading
      
      Slightly broken
      
      * Better downloading
      
      now downloads file on button click
      
      * Fix the angry linter
      
      * Fix dist
      
      * Removed collapsing, added scrolling.
      
      * Code clean up.
      
      * CSS fix.
      
      * prevent HighlightCode from scrolling entire document
      
      * center "Download" text in button
      
      * `this.downloadJSON` -> `this.downloadText`
      
      we're always saving as `.txt`, so JSON is a misnomer
      
      * hide Download button behind option `downloadable` prop
      
      * `file-saver` -> `js-file-download`
      27955183
  29. 03 3月, 2018 1 次提交
    • 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
  30. 24 2月, 2018 1 次提交
    • 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
  31. 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
  32. 10 2月, 2018 2 次提交
  33. 08 2月, 2018 1 次提交
  34. 26 1月, 2018 1 次提交