Commit Graph

627 Commits

Author SHA1 Message Date
Andy Wilkinson
c19b2924f4 Remove redundant max perm size build configuration 2018-08-08 11:11:27 +01:00
Andy Wilkinson
81ef9f8a38 Upgrade to Gradle 4.9
Closes gh-541
2018-08-08 10:45:04 +01:00
Andy Wilkinson
39a5198c3b Upgrade the Grails sample to Grails 3.3.x and Gradle 4.9
Closes gh-540
2018-08-08 09:57:15 +01:00
Andy Wilkinson
8bc5b4e27e Merge pull request #535 from Johnny Lim
* gh-535:
  Polish JsonContentHandler.isEmptyCollection()
2018-08-01 14:14:53 +01:00
Johnny Lim
7f86552670 Polish JsonContentHandler.isEmptyCollection()
Closes gh-535
2018-08-01 14:14:35 +01:00
Andy Wilkinson
1d52ba86a0 Merge pull request #530 from Johnny Lim
* gh-530:
  Polish "Consistently use ID-based equality check for TemplateFormat"
  Consistently use ID-based equality check for TemplateFormat
2018-08-01 11:51:23 +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
93cb08a4cc Merge pull request #534 from Johnny Lim
* gh-534:
  Polish
2018-08-01 11:37:49 +01:00
Johnny Lim
5a8fe2f100 Polish
Closes gh-534
2018-08-01 11:37:07 +01:00
Andy Wilkinson
8bb460170c Update the samples to use 1.2.6 snapshots 2018-07-19 12:51:24 +01:00
Spring Buildmaster
589a89fbcb Next development version 2018-07-19 11:18:16 +00: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
001fb388b0 Merge pull request #525 from Johnny Lim
* gh-525:
  Remove unnecessary FieldDoesNotExistException handling
2018-07-16 17:06:32 +01:00
Johnny Lim
5ace000c75 Remove unnecessary FieldDoesNotExistException handling
Previously, FieldDoesNotExistException was caught when extracting
a field to determine whether or not it is missing (absent or an
empty collection). The handling is redundant due to an earlier call
to hasField so this commit removes it.

Closes gh-525
2018-07-16 16:09:47 +01:00
Andy Wilkinson
02e842dc89 Merge pull request #526 from Johnny Lim
* gh-526:
  Polish "Remove redundant static modifier for enums"
  Remove redundant static modifier for enums
2018-07-16 16:05:22 +01:00
Andy Wilkinson
cae53fdf3c Polish "Remove redundant static modifier for enums"
See gh-526
2018-07-16 16:05:02 +01:00
Johnny Lim
559357e211 Remove redundant static modifier for enums
Closes gh-526
2018-07-16 16:03:36 +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
Andy Wilkinson
920ced0755 Preserve cookies when preprocessing a request to modify its URIs
Closes gh-523
2018-07-16 10:48:50 +01:00
Andy Wilkinson
e14bda0893 Disable interpolation of Asciidoctor path parameter table's title
Previously, when generating Asciidoctor snipppets, the title of the
path parameter table was interpolated. The title of the table is the
path including its parameters. The parameters are typically surrounded
by { and }. This is the same syntax used for attributes in
Asciidoctor. With interpolation enabled this caused Asciidoctor to
interpret the parameter as an attribute reference and attempt to
replace it. This would either result in unwanted replacement of the
parameter with the value of the attribute or it would result in a
warning about a missing attribute.

This commit surrounds the title of the table with + characters. This
disables all interpolation for the title, thereby preventing
unwanted replacement or attempted replacement of the path's
parameters.

Closes gh-527
2018-07-16 10:30:14 +01:00
Andy Wilkinson
e1948f29b1 Merge pull request #524 from Johnny Lim
* gh-524:
  Fix typo in JsonContentHandlerTests
2018-07-03 09:36:21 +01:00
Johnny Lim
ae37bb2044 Fix typo in JsonContentHandlerTests
Closes gh-524
2018-07-03 09:35:55 +01:00
Andy Wilkinson
7bde04ea46 Consider sometimes present field beneath optional array to not be missing
The changes made in 7476562d inadvertently caused a field that is
an descendant of an array and a child of an optional field to be
considered missing when its parent is only sometimes present. Due to
the parent being optional, the parent’s absence should not cause the
absent child to be considered to be missing.

Closes gh-519
2018-06-26 12:14:41 +01:00
Andy Wilkinson
20bc7b3cd8 Polish 2018-06-25 17:07:37 +01:00
Andy Wilkinson
7476562d22 Consider optional empty arrays to be absent when finding missing fields
Closes gh-519
2018-06-25 16:59:19 +01:00
Andy Wilkinson
7e49a20cb0 Merge pull request #507 from Renann Prado
* gh-507:
  Polish "Fix typo in OperationResponsePreprocessor javadoc"
  Fix typo in OperationResponsePreprocessor javadoc
2018-06-25 16:25:50 +01:00
Andy Wilkinson
c29d094f05 Polish "Fix typo in OperationResponsePreprocessor javadoc"
Closes gh-507
2018-06-25 16:25:34 +01:00
Renann Prado
94a57c33cf Fix typo in OperationResponsePreprocessor javadoc
See gh-507
2018-06-25 16:25:34 +01:00
Andy Wilkinson
86c31c96b9 Avoid duplication of parameters when POSTing form URL encoded bodies
Previously if a request body contained form URL encoded content,
parameters would be duplicated in the request body and in the
request URL in the curl, HTTPie, and HTTP request snippets.

This commit updates the affected snippets so that parameters are not
added to the URL when they will also be represented in the request
body.

Closes gh-514
2018-06-25 16:21:39 +01:00
Andy Wilkinson
1e35e8279c Polish Slate sample's README 2018-04-24 08:35:13 +01:00
Andy Wilkinson
a2b62e025a Update samples to use 1.2.5 snapshots 2018-04-04 10:55:02 +01:00
Spring Buildmaster
037d572e2c Next development version 2018-04-04 09:23:04 +00:00
Andy Wilkinson
4c6cccac24 Upgrade to REST Assured 3.0.7
Closes gh-500
2018-04-04 09:13:17 +01:00
Andy Wilkinson
39733893c1 Upgrade to Spring Framework 4.3.15
Closes gh-499
2018-04-04 09:08:05 +01:00
Andy Wilkinson
baa8e6bb90 Document an example of the operation macro's equivalent Asciidoctor
Closes gh-470
2018-03-28 10:10:10 +01:00
Andy Wilkinson
1c08000bcf Retain subsection extractor when adding field descriptors with prefix
Closes gh-480
2018-03-28 09:46:27 +01:00
Andy Wilkinson
7924d5fb01 Disable formatting of monospaced text in Asciidoctor templates
Previously, if text enclosed in ` characters contained multiple *
characters, the *s would be removed and the characters they enclosed
would become bold.

This commit escapes the text by enclosing it in + characters in
addition to the existing, enclosing ` characters. The `+text+`
arrangement retains the monospace formatting be disables any further
formatting of the text.

Closes gh-474
2018-03-27 16:08:11 +01:00
Andy Wilkinson
0b0c9e1cc4 Perform attribute substitution on operation macro's target
Closes gh-491
2018-03-27 15:24:00 +01:00
Andy Wilkinson
ecbb3a8d67 Merge pull request #477 from Pierre-Jean Vardanega
* gh-477:
  Convert query parameters list as param=1&param=2 instead of param=1,2
2018-03-27 14:26:14 +01:00
Pierre-Jean Vardanega
586de30212 Convert query parameters list as param=1&param=2 instead of param=1,2
Closes gh-477
2018-03-27 14:25:33 +01:00
Andy Wilkinson
a7e91ad63f Merge pull request #488 from Johnny Lim
* gh-488:
  Add HTTP method option unconditionally in curl command
2018-03-27 14:08:31 +01:00
Johnny Lim
da64c55fce Add HTTP method option unconditionally in curl command
Closes gh-488
2018-03-27 14:07:47 +01:00
Andy Wilkinson
95c4234c99 Format core code with Eclipse Oxygen's formatter 2018-03-27 12:53:34 +01:00
Andy Wilkinson
f651c30e03 Merge pull request #482 from bartolom
* gh-482:
  Quote cols attribute in Asciidoc table example
2018-02-19 12:37:48 +00:00
bartolom
7e3417e124 Quote cols attribute in Asciidoc table example
Closes gh-482
2018-02-19 12:36:25 +00:00
Andy Wilkinson
80bb632849 Warn against the use of org.asciidoctor.convert 1.5.6
Closes gh-438
2018-02-05 12:25:12 +00:00
Andy Wilkinson
874bfd119e Update samples to use 1.2.4 snapshots 2017-11-28 09:23:03 +00:00
Spring Buildmaster
fe9ec0ea1c Next development version 2017-11-28 09:19:01 +00:00
Andy Wilkinson
4d710d9143 Merge pull request #449 from Michael Simons
* gh-449:
  Fix name of self rel in reference documentation
2017-11-11 18:58:18 +00:00