recruit-tech / agreed Goto Github PK
View Code? Open in Web Editor NEWagreed is Consumer Driven Contract tool with JSON mock server.
agreed is Consumer Driven Contract tool with JSON mock server.
Thank you for making a nice library,
It was discovered while trying out the sample code.
I think there is a problem with the code here.
agreed/packages/core/lib/check/checker.js
Line 42 in d857770
$ curl http://localhost:3010/user/yosuke\?q\=foo
{"message":"hello yosuke foo","images":["http://example.com/foo.jpg","http://example.com/bar.jpg"],"themes":{"name":"green"}}%
$ curl http://localhost:3010/user/yosuke\?q\=fooaaaaa
{"message":"hello yosuke fooaaaaa","images":["http://example.com/foo.jpg","http://example.com/bar.jpg"],"themes":{"name":"green"}}%
$ curl http://localhost:3010/user/yosuke\?q\=fooaaaaaaaaaaaa
{"message":"hello yosuke fooaaaaaaaaaaaa","images":["http://example.com/foo.jpg","http://example.com/bar.jpg"],"themes":{"name":"green"}}%
$ curl http://localhost:3010/user/yosuke\?q\=foo
{"message":"hello yosuke foo","images":["http://example.com/foo.jpg","http://example.com/bar.jpg"],"themes":{"name":"green"}}%
$ curl http://localhost:3010/user/yosuke\?q\=fooaaaaa
Agree Not Found
$ curl http://localhost:3010/user/yosuke\?q\=fooaaaaaaaaaaaa
Agree Not Found
Shouldn't the URL be matched against the values in values.someQueryStrings
?
// save as agreed.js
module.exports = [
{
request: {
path: '/user/:id',
method: 'GET',
query: {
q: '{:someQueryStrings}',
},
values: {
id: 'yosuke',
someQueryStrings: 'foo'
},
$ node -v
v13.13.0
"@agreed/cli": "^5.1.10"
response.status seems configurable https://github.com/recruit-tech/agreed-core/blob/master/test/agrees/qux/response.json
but it's not documented.
It is my query hoge
query: {
hoge: '{:hoge}'
}
I use func()
method and argument is a in body
.
It returns just '{:hoge}'
.
const func = (a) => {
console.log(a); // => it is just '{:hoge}'
};
module.exports = [
{
// something
// something
body: func('{:hoge}')
}
]
see: this example https://github.com/orisano/agreed-playground
Agreed planning to support the open API?
postのbodyによってresponseを変えたい時にはどうするべきか。
ドキュメントがほしい。
I would like the API document to be visible on the browser.
like a SWAGGER UI
Will Agreed planning to make Agreed-ui
?
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates are currently rate-limited. Click on a checkbox below to force their creation now.
minimist
, @types/minimist
)@typescript-eslint/types
, @typescript-eslint/typescript-estree
)@typescript-eslint/types
, @typescript-eslint/typescript-estree
)These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
@types/jest
, jest
, ts-jest
)packages/typed/.circleci/config.yml
circleci/node 17-browsers
.github/workflows/nodejs.yml
actions/checkout v3
actions/setup-node v3
package.json
lerna 6.5.1
packages/cli/package.json
@agreed/client ^5.3.2-alpha.0
@agreed/server ^5.3.2-alpha.0
@agreed/typed ^5.3.2-alpha.0
@agreed/ui ^5.3.2-alpha.0
colo ^1.0.0
json5 ^2.0.0
minimist ^1.2.0
eater 4.0.4
plz-port 1.0.0
packages/client/package.json
@agreed/core ^5.3.2-alpha.0
colo ^1.0.0
is-empty ^1.0.0
@agreed/server ^5.3.2-alpha.0
eater 4.0.4
plz-port 1.0.0
packages/core/package.json
@types/node ^18.0.0
json5 ^2.0.0
jsonschema ^1.2.4
path-to-regexp ^6.0.0
stable ^0.1.8
typescript ^4.0.0
yamljs ^0.3.0
assert-stream 1.1.1
body-parser 1.20.0
codecov 3.8.3
eater 4.0.4
eslint 7.32.0
eslint-config-prettier 8.7.0
eslint-plugin-prettier 4.2.1
espower-loader 1.2.2
express 4.18.2
is-empty 1.2.0
must-call 1.0.0
npm-run-all 4.1.5
nyc 15.1.0
plz-port 1.0.0
power-assert 1.6.1
prettier 2.8.4
packages/server/package.json
@agreed/core ^5.3.2-alpha.0
body-parser ^1.18.3
cors ^2.8.5
express ^4.16.4
express-http-proxy ^1.6.0
morgan ^1.9.1
assert-stream 1.1.1
eater 4.0.4
must-call 1.0.0
plz-port 1.0.0
packages/typed/package.json
@agreed/core ^5.3.2-alpha.0
@types/estree 1.0.0
@types/minimist ^1.2.0
@types/node ^18.0.0
@typescript-eslint/types ^5.0.0
@typescript-eslint/typescript-estree ^5.0.0
doctrine ^3.0.0
json2yaml ^1.1.0
minimist ^1.2.0
typescript-json-schema ^0.55.0
@types/jest 27.5.2
axios 0.27.2
body-parser 1.20.0
cors 2.8.5
express 4.18.2
get-port 5.1.1
jest 26.6.3
prettier 2.8.4
ts-jest 26.5.6
ts-node 10.9.1
tslint 6.1.3
tslint-config-prettier 1.18.0
tslint-plugin-prettier 2.3.0
typescript 4.7.4
packages/ui/package.json
@agreed/core ^5.3.2-alpha.0
colo 1.0.0
express 4.18.2
fs-extra 11.1.0
json-schema-to-flow-type 1.0.0
lodash.template 4.5.0
minimist 1.2.8
serialize-javascript 6.0.1
axios 0.27.2
babel-eslint 10.1.0
classnames 2.3.1
eslint 7.32.0
eslint-config-prettier 8.7.0
eslint-plugin-prettier 4.2.1
eslint-plugin-react 7.30.0
prettier 2.8.4
prop-types 15.8.1
react 18.2.0
react-dom 18.2.0
react-json-tree 0.18.0
react-scripts 5.0.1
.travis.yml
node 10
node 12
There is an error with this repository's Renovate configuration that needs to be fixed. As a precaution, Renovate will stop PRs until it is resolved.
Error type: undefined. Note: this is a nested preset so please contact the preset author if you are unable to fix it yourself.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.