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
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
9162888f1b
Read snippet templates as UTF-8 by default
...
Fixes gh-585
2020-09-01 13:30:42 +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
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
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
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
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
c006b062e8
Merge branch '1.2.x'
2018-11-22 12:13:59 +00:00
Andy Wilkinson
71198a402a
Maintain formatting during subsection extraction
...
Closes gh-466
2018-11-22 11:33:34 +00:00
Andy Wilkinson
9851a7cd71
Merge branch '1.2.x'
2018-11-22 11:03:30 +00:00
Andy Wilkinson
9e1ba8a922
Improve beneathPath to work with multiple matches with common structure
...
Closes gh-473
2018-11-22 11:00:23 +00:00
Andy Wilkinson
64ea9c29f5
Polish "Provide a public API for resolving the type of a field"
...
Closes gh-549
2018-11-21 14:22:20 +00:00
Mathias Düsterhöft
4453fde23c
Provide a public API for resolving the type of a field
...
See gh-549
2018-11-21 14:22:20 +00:00
Andy Wilkinson
ada273ba9e
Rework JsonFieldTypeResolver to only discover the field types
...
See gh-549
2018-11-21 14:22:20 +00:00
Andy Wilkinson
9deae49795
Merge branch '1.2.x'
2018-11-01 07:04:45 +00:00
Andy Wilkinson
e23c6b45d4
Stop flagging documented field beneath option null field as missing
...
Closes gh-557
2018-11-01 07:03:29 +00:00
Andy Wilkinson
fad2dff977
Merge branch '1.2.x'
2018-08-08 16:51:28 +01:00
Andy Wilkinson
244a734232
Adopt Spring Java Format for code formatting and style
2018-08-08 14:08:15 +01:00
Andy Wilkinson
ceb844183d
Merge branch '1.2.x'
2018-08-08 12:27:43 +01:00
Andy Wilkinson
7431426cf3
Update tests to use AssertJ
...
Closes gh-537
2018-08-08 11:22:57 +01:00
Andy Wilkinson
824e8d6ddf
Merge branch '1.2.x'
2018-08-01 12:00:03 +01:00
Andy Wilkinson
d57fa02254
Polish "Consistently use ID-based equality check for TemplateFormat"
2018-08-01 11:47:49 +01:00
Johnny Lim
d05f6cdb6a
Consistently use ID-based equality check for TemplateFormat
...
Closes gh-530
2018-08-01 11:43:52 +01:00
Andy Wilkinson
5bc873810c
Merge branch '1.2.x'
2018-08-01 11:39:24 +01:00
Johnny Lim
5a8fe2f100
Polish
...
Closes gh-534
2018-08-01 11:37:07 +01:00
Andy Wilkinson
71d53664bb
Merge branch '1.2.x'
2018-07-19 11:19:22 +01:00
Andy Wilkinson
81b55d470b
Refine missing field detection logic for paths with multiple arrays
...
Previously, missing field detection worked correctly for paths
containing a single array, but if the path contained multiple arrays
the extracted value would be a list containing a single empty list.
In this case the field would not be considered missing when, in fact
it should have been.
This commit updates the missing field detection logic to recursively
examine the extracted value and, when it's a collection, the values
that it contains. As a result, a field will be considered to be
missing if it isn't present, if it's an empty collection, or if it's
a collection that only contains empty collections or, to any depth,
collections of empty collections.
Closes gh-519
2018-07-19 11:11:38 +01:00
Andy Wilkinson
d59886df31
Merge branch '1.2.x'
2018-07-16 15:56:54 +01:00
Andy Wilkinson
a2a9a7cb0f
Stop type determination from changing descriptor's type
...
Previously, when a field's type was automatically determined, the
type of the passed-in descriptor was changed. This could cause
problems if the descriptor was reused in another test.
This commit updates AbstractFieldsSnippet to create a copy of each
descriptor so that setting the determined type does not affect the
type of the original descriptor.
Closes gh-511
2018-07-16 15:50:34 +01:00