Skip to content
This repository has been archived by the owner on Feb 17, 2023. It is now read-only.

Fetch upstream changes from Kong/httpsnippet #11

Open
wants to merge 157 commits into
base: master
Choose a base branch
from

Conversation

philsturgeon
Copy link

they've made a lot of good changes, improvements, and added some new targets I'd love for us to start using at Stoplight.

gkoberger and others added 30 commits April 2, 2017 17:25
Change-Id: Ic28431ae73b499e929545f95d746b1606fd639f3

fix double quote

Change-Id: I7a8d4aa4cfd96159886436b89fc73096c9e740c5

fixture tests

Change-Id: I355747450a1b47dc356ed97ba3da3c4b48ea6adc

fix travis ci

Change-Id: I88295b5adf157420052793c94b74dbdcb1abdaf3

small update

Change-Id: Iabdddda1142500d14da1ab9157396d9871118130

close async http clinet

Change-Id: Ie61baf7f5e19ed06e3799799d1604e6bf32a54fd

delete leftover code

Change-Id: I67c4b6e929903bd6a6e7e79cbbb596d2f33b0696
This target uses the default HttpClient class
which doesn't require any additional NuGet Packages.
…4.7.6

chore(deps): bump handlebars from 4.1.2 to 4.7.6
Adding the ability to import custom targets and target clients
fix(package.json) Update dev dependencies for vulnerabilities
chore(deps): bump lodash from 4.17.15 to 4.17.19
Add java.net.http.HttpClient based snippet generator
filfreire and others added 24 commits May 17, 2024 14:53
* fix: tag weirdness

* fix

* fix

* fix
* Create initial rust files

Create initial rust files to support the target. Create all of the demo
fixture files for the different request types.

These also require specific `Cargo.toml` dependencies with some features,
but I've tried to keep them fully qualified where possible. I'm not sure
yet how best to show adding dependencies to a project to enable these
features.

* Start work on reqwest client

Start working on the reqwest conversion client after adding targets.

* Complete Adding Rust as target

Completed adding Rust as a target. All of the fixtures have been tested
in a separate Rust project to verify that they build and successfully
run against the Har test endpoint.

All tests are running and passing, except for the snapshot that verifies
all available targets, not sure where to update that.

* Run linter

Ran the linter defined in `package.json`

All tests except snapshot for targets passing.

* Update snapshot to fix available targets test

Update the available targets test to fix the snapshot.

* lint

---------

Co-authored-by: Filipe Freire <[email protected]>
Bumps [ws](https://github.com/websockets/ws) from 7.5.7 to 7.5.10.
- [Release notes](https://github.com/websockets/ws/releases)
- [Commits](websockets/ws@7.5.7...7.5.10)

---
updated-dependencies:
- dependency-name: ws
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [braces](https://github.com/micromatch/braces) from 3.0.2 to 3.0.3.
- [Changelog](https://github.com/micromatch/braces/blob/master/CHANGELOG.md)
- [Commits](micromatch/braces@3.0.2...3.0.3)

---
updated-dependencies:
- dependency-name: braces
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bumps [@babel/traverse](https://github.com/babel/babel/tree/HEAD/packages/babel-traverse) from 7.22.6 to 7.24.5.
- [Release notes](https://github.com/babel/babel/releases)
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md)
- [Commits](https://github.com/babel/babel/commits/v7.24.5/packages/babel-traverse)

---
updated-dependencies:
- dependency-name: "@babel/traverse"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Generate Crystal language code

* Generate Crystal language code

* Remove a blank line

* fix crystal tests

---------

Co-authored-by: Filipe Freire <[email protected]>
* fix: prevent override of default value of request.postData when postData might be undefined

* chore: optional chaining safety check for when request.PostData can be undefined
* Support any method for PowerShell

* fix test

---------

Co-authored-by: Filipe Freire <[email protected]>
* Add nvmrc and set it to 14.9 as per #248

* Use node 18

* bump to node 20 on nvmrc file

---------

Co-authored-by: Filipe Freire <[email protected]>
* updates library exports

* fixes lint configuration

so that it actually fails now, as intended

* tidy up

---------

Co-authored-by: Filipe Freire <[email protected]>
* Feat: replace custom har-validator with hard-validator-compiled package

* test(http-snippet): update casing

* fix: linting
Ensure that code snippets use enum members that are pascal cased and
not upper cased. For example use `Method.Get` instead of `Method.GET` to
ensure the snippets can compile.

fixes #365

use `var` for return "type" of RestSharp request response

The type `IRestResponse` doesn't exist in latest client (version 112)

fixes #367
* fix(form-data): override import from package root

* fix(httpsnippet): linting errors
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.