Andy Wilkinson
d4d83f293a
Fix HTTP request snippet's handling of query strings and params
...
Closes gh-763
2022-01-10 14:31:03 +00:00
Andy Wilkinson
90e0721b7a
Use --multipart for HTTPie multipart requests
...
Previously --form was ussed which relied on a file part turning the
request into a --multipart one. Switching to --multipart makes the
intent of the request more clear and also simplifies sending parts
that aren't file-based.
Closes gh-771
2022-01-10 13:37:25 +00:00
Andy Wilkinson
a63a514193
Avoid duplicates in multipart reqs with overlapping parts and params
...
Fixes gh-746
2022-01-10 13:16:01 +00:00
Andy Wilkinson
36358244ca
Avoid possible NPE in JsonFieldPaths
...
See gh-715
2021-11-17 19:18:42 +00:00
Andy Wilkinson
ea3ac32701
Make use of Gradle's support for test fixtures
...
Closes gh-756
2021-09-28 10:08:24 +01:00
Andy Wilkinson
88fe8a6f13
Stop pretty printing from truncating content starts as valid JSON
...
Fixes gh-730
2021-06-15 11:37:29 +01:00
Andy Wilkinson
bf1bfc4075
Fix optional dependencies having compile scope in poms
...
Closes gh-729
2021-06-15 10:59:25 +01:00
Andy Wilkinson
6c0960d304
Polish "Improve exception message when subsection is empty array"
...
See gh-732
2021-06-14 21:12:45 +01:00
ddaaac
cbe6d775f3
Improve exception message when subsection is empty array
...
See gh-732
2021-06-14 21:12:32 +01:00
izeye
709e5f2e59
Add missing json() invocation in JsonFieldPathsTests
...
See gh-720
2021-05-21 18:12:20 +01:00
Andy Wilkinson
09b21a91ed
Adopt compatibility testing plugin
...
Closes gh-728
2021-05-21 18:08:07 +01:00
Andy Wilkinson
2ead1fb0d8
Upgrade to Gradle 6.8 and modernize the build
...
Closes gh-719
2021-04-28 20:59:20 +01:00
Andy Wilkinson
2b5eab309c
Improve error message when extracting a sometimes absent sub-section
...
Fixes gh-715
2021-04-19 14:18:47 +01:00
Andy Wilkinson
c3cb7af68a
Preserve UTF-8 content when masking links in JSON payloads
...
Closes gh-705
2021-01-08 12:17:50 +00:00
Andy Wilkinson
536e87acc9
Fix kebab and snake case formatting of all upper case words
...
Closes gh-658
2020-09-01 16:28:03 +01:00
Andy Wilkinson
baaf4f2e05
Update query string when modifying GET request's parameters
...
Fixes gh-682
2020-09-01 15:35:17 +01:00
Andy Wilkinson
ffe4c93c38
Polish "Propagate ignoreUndocumentedParamteres with .and()"
...
See gh-676
2020-09-01 13:55:12 +01:00
Brice Dutheil
eac7d67c4e
Propagate ignoreUndocumentedParamteres with .and()
...
See gh-676
2020-09-01 13:54:54 +01:00
Andy Wilkinson
b02fcbee6a
Default to UTF-8 when reading operation content as a string
...
Fixes gh-689
2020-09-01 13:37:13 +01:00
Andy Wilkinson
9162888f1b
Read snippet templates as UTF-8 by default
...
Fixes gh-585
2020-09-01 13:30:42 +01:00
Andy Wilkinson
a9c4732a83
Update javadoc to be Java 11 compatible
...
Closes gh-687
2020-06-08 16:40:48 +01:00
Andy Wilkinson
0146f1a8ca
Fix handling of parameters when documenting non-GET requests
...
Fixes gh-683
2020-05-06 13:35:19 +01:00
Andy Wilkinson
d925a9f219
Polish "Fix NPE in HttpResponseSnippet when response has custom status"
...
See gh-653
2019-10-22 10:09:20 +01:00
Florian Ferreira
aee641b642
Fix NPE in HttpResponseSnippet when response has custom status
...
See gh-653
2019-10-22 10:07:41 +01:00
Andy Wilkinson
97ddf3dcec
Fix handling of empty querty string parameters
...
Previously empty parameters in a query string were handled
inconsistently such that they sometimes had a value of "" in a list
and sometimes were represented as an empty list. This inconsistency
lead to the parameter appearing twice in the cURL request snippet.
This commit removes the inconsistency by always using an empty string
to represent an empty query parameter value.
Fixes gh-647
2019-10-04 18:34:56 +01:00
Andy Wilkinson
93a43dfd0a
Consider optionality when finding uncommon fields in subsection extraction
...
Fixes gh-573
2019-09-18 14:26:40 +01:00
Andy Wilkinson
3f66b066f7
Improve field type resolution for fields with optional ancestors
...
Fixes gh-567
2019-09-18 11:53:42 +01:00
Andy Wilkinson
3a5cc58fab
Test against Spring Framework 5.2
2019-09-15 15:03:50 +01:00
Andy Wilkinson
ef0973c548
Test against latest Framework 5.1 snapshot
...
This updates REST Docs to test against Framework's latest 5.1
snapshot. Due to a bug in the behaviour of HttpHeaders' key set [1],
HeaderRemovingOperationPreprocessor has been updated to no longer use
it when removing headers from a request or response prior to it being
documented.
[1] https://github.com/spring-projects/spring-framework/issues/22821
2019-09-14 17:38:29 +01:00
Andy Wilkinson
3597ebc35a
Allow responses with non-standard status codes to be documented
...
Fixes gh-639
2019-09-12 17:03:21 +01:00
Andy Wilkinson
1b87af13be
Improve diagnostics when extracting a non-existent subsection
...
Closes gh-568
2019-08-30 14:05:50 +01:00
Andy Wilkinson
bc66fe5643
Polish "Allow custom snippets directory via JUnit 5"
...
See gh-633
2019-08-30 11:43:35 +01:00
Jochen Just
43ec46fcc1
Allow custom snippets directory via JUnit 5
...
See gh-633
2019-08-30 11:23:19 +01:00
Andy Wilkinson
cc22dbfe26
Merge branch '1.2.x'
2019-08-30 11:20:34 +01:00
Andy Wilkinson
508b3d6593
Upgrade to Spring Java Format 0.0.15
2019-08-30 11:07:04 +01:00
Andy Wilkinson
32c92bf885
Merge branch '1.2.x'
2019-03-26 12:11:10 +00:00
Andy Wilkinson
2dda908c7e
Polish "Use HTTPS for externals links where possible"
...
See gh-611
2019-03-26 12:00:27 +00:00
Spring Operator
cb5d7c2220
Use HTTPS for externals links where possible
...
See gh-611
2019-03-26 11:59:53 +00:00
Andy Wilkinson
c2c4ed7752
Merge branch '1.1.x' into 1.2.x
2019-03-26 11:45:06 +00:00
Andy Wilkinson
2cfe47a330
Merge branch '1.0.x' into 1.1.x
2019-03-26 10:53:52 +00:00
Andy Wilkinson
447cc4940e
Polish "Use HTTPS for external links where possible"
...
See gh-609
2019-03-26 10:49:19 +00:00
Spring Operator
f2e60ea347
Use HTTPS for external links where possible
...
See gh-609
2019-03-26 10:28:47 +00:00
Andy Wilkinson
09a4323ed5
Merge branch '1.2.x'
2019-03-19 11:42:23 +00:00
Andy Wilkinson
3282a798cb
Merge branch '1.1.x' into 1.2.x
2019-03-19 11:35:06 +00:00
Andy Wilkinson
f7e61013bb
Merge branch '1.0.x' into 1.1.x
2019-03-19 11:24:34 +00:00
Andy Wilkinson
75132b537a
Use HTTPS to link to Apache license
2019-03-19 11:21:34 +00:00
Andy Wilkinson
df9711ba3a
Merge branch '1.2.x'
2019-03-13 09:33:16 +00:00
Andy Wilkinson
874ebba73d
Polish "Fix links to ignored() in RequestDocumentation's javadoc"
...
See gh-595
2019-03-13 09:31:35 +00:00
clydebarrow
2f12c2de6a
Fix links to ignored() in RequestDocumentation's javadoc
...
See gh-595
2019-03-13 09:27:42 +00:00
Andy Wilkinson
c006b062e8
Merge branch '1.2.x'
2018-11-22 12:13:59 +00:00