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

Allow specification extensions (^x-) #15

Closed
6 tasks done
matthew-inamdar opened this issue May 18, 2019 · 0 comments
Closed
6 tasks done

Allow specification extensions (^x-) #15

matthew-inamdar opened this issue May 18, 2019 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@matthew-inamdar
Copy link
Member

matthew-inamdar commented May 18, 2019

Links and resources

While the OpenAPI Specification tries to accommodate most use cases, additional data can be added to extend the specification at certain points.

The extensions properties are implemented as patterned fields that are always prefixed by x-.

Todo

  • Base object to implement the feature.
  • $object->x(string $key, mixed $value = 'X_EMPTY_VALUE'): self setter method.
  • Empty value string indicates the value should be unset, this allows users to specify a null value.
  • $object->xKey getter in magic __get() method.
  • toArray() method to include all extensions provided.
  • $object->xExtensions getter to get the entire array.
@matthew-inamdar matthew-inamdar added the enhancement New feature or request label May 18, 2019
@matthew-inamdar matthew-inamdar added the help wanted Extra attention is needed label Jun 17, 2019
@matthew-inamdar matthew-inamdar changed the title Allow specification extensions Allow specification extensions (x-) Jun 21, 2019
@matthew-inamdar matthew-inamdar changed the title Allow specification extensions (x-) Allow specification extensions (^x-) Jun 27, 2019
vyuldashev added a commit to vyuldashev/oooas that referenced this issue Nov 12, 2019
vyuldashev added a commit to vyuldashev/oooas that referenced this issue Nov 12, 2019
vyuldashev added a commit to vyuldashev/oooas that referenced this issue Nov 12, 2019
vyuldashev added a commit to vyuldashev/oooas that referenced this issue Nov 12, 2019
matthew-inamdar pushed a commit that referenced this issue Nov 14, 2019
Author: @vyuldashev 

* MediaType application/x-www-form-urlencoded

* add docblock

* #15 Extensions support

* #15 BaseObject getter for extension

* #15 BaseObject getter for all extensions

* #15 Extensions object, add readme for extensions

* resolve conflicts

* fix code style

* add callbacks to Operation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Development

Successfully merging a pull request may close this issue.

1 participant