1. 29 7月, 2020 1 次提交
  2. 18 7月, 2020 1 次提交
  3. 16 7月, 2020 1 次提交
  4. 07 7月, 2020 1 次提交
  5. 11 6月, 2020 2 次提交
  6. 30 5月, 2020 1 次提交
  7. 29 5月, 2020 1 次提交
  8. 21 5月, 2020 1 次提交
  9. 14 5月, 2020 1 次提交
  10. 12 10月, 2019 2 次提交
  11. 08 10月, 2019 1 次提交
    • P
      feat: add PKCE support for OAuth2 Authorization Code flows (#5361) · 139592e3
      poveilleux 提交于
      * Add PKCE support.
      
      * Fix tests
      
      * Update oauth2.md
      
      * Rename usePkce
      
      * Fix the BrokenComponent error
      
      * Update oauth2.md
      
      * Remove isCode variable. Remove uuid4 dependency.
      
      * Remove utils functions
      
      * Import crypto
      
      * Fix tests
      
      * Fix the tests
      
      * Cleanup
      
      * Fix code_challenge generation
      
      * Move code challenge and verifier to utils for mocks. Update tests.
      
      * Mock the PKCE methods in the utils file properly.
      
      * Add missing expect
      
      * use target-method spies
      
      * Add comments to explain test values.
      
      * Get rid of jsrsasign.
      139592e3
  12. 16 9月, 2019 1 次提交
  13. 03 9月, 2019 1 次提交
  14. 01 9月, 2019 1 次提交
    • K
      feature: support for `Parameter.content` (#5571) · c9c3b233
      kyle 提交于
      * add `getParameterSchema` OAS helper
      
      * use `Parameter.content.[firstKey].schema` as schema value when present
      
      * `newValue` -> `initialValue`
      
      * make `paramWithMeta` a const
      
      * add trailing comma to `swagger2SchemaKeys`
      
      * refactor `helpers` to a folder
      
      * deprecate `src/core/utils.js` in favor of `src/core/helpers/`
      
      * support `Parameter.content.[mediaType].schema` in validateParam
      
      * reject `null` as an OAS3 object value
      
      * expose Fetch errors in the browser console
      
      * generate ParameterRow default values based on `content` values
      
      * add tests for `getParameterSchema`
      
      * remove debugger statement
      
      * remove debugger statement
      
      * don't apply `generatedSampleValue`s to parameters with `examples`
      
      * remove extra semi
      
      * disable JSON check in parameter runtime validation
      
      * stringify JsonSchema_object textarea values
      
      * add Cypress tests
      
      * swagger-client@3.9.4
      c9c3b233
  15. 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
  16. 10 4月, 2019 1 次提交
  17. 30 1月, 2019 1 次提交
    • K
      bug: parameter `allowEmptyValue` + `required` interactions (via #5142) · abf34961
      kyle 提交于
      * add failing tests
      * standardize parameter keying
      * validateParam test migrations
      * migrate test cases to new pattern
      * disambiguate name/in ordering in `body.body` test cases
      * `name+in`=> `{in}.{name}`
      * consider allowEmptyValue parameter inclusion in runtime validation
      * use config object for all validateParam options
      * drop isXml flag from validateParams
      abf34961
  18. 20 10月, 2018 1 次提交
  19. 17 10月, 2018 1 次提交
  20. 27 7月, 2018 1 次提交
  21. 14 7月, 2018 1 次提交
    • K
      Example (#4730) · 478d93ae
      kyle 提交于
      * add tests for example feature
      * refactor ParameterRow value setter logic
      * aside: fix property access in sampleFromSchema
      * prioritize media type examples for OAS3 responses
      * use `example` in schema level example
      * refactor: move stringify to utils
      * prioritize media type examples in OAS3 request bodies
      * modify nightwatch config
      * fix parameter/response regressions
      * reorder and broaden default value sources
      * update lockfile
      478d93ae
  22. 07 7月, 2018 1 次提交
  23. 28 6月, 2018 1 次提交
  24. 15 6月, 2018 1 次提交
  25. 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
  26. 27 4月, 2018 1 次提交
    • H
      feat: option to show common query parameters (#4245) · cbff0251
      Helder Sepulveda 提交于
      * extend getExtensions
      
      Add optional param to getExtensions that can retrieve more stuff
      
      * Add getCommonExtensions
      
      * Trim trailing spaces
      
      * Remove unused parameter
      
      * Move the format inline with the param type
      
      * correction to UnitTest
      cbff0251
  27. 10 4月, 2018 1 次提交
  28. 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
  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. 27 2月, 2018 1 次提交
  31. 24 2月, 2018 1 次提交
  32. 12 1月, 2018 2 次提交
  33. 06 1月, 2018 2 次提交
  34. 07 12月, 2017 1 次提交
  35. 29 11月, 2017 1 次提交
  36. 11 11月, 2017 1 次提交