This is not a missing property. Since the Java side accepts a com.fasterxml.jackson.databind.JsonNode, it is a question if the property type can also be an array, and any other type besides object.
This is not a missing property. Instead, it is ignored on Java side. The Java code could be extended with a comment about the reason why it is ignored.
The type of the equalTo property should be string instead of boolean.
Additionally in content-pattern, sections are missing for the following classes: MatchesJsonSchemaPattern, NotPattern, NegativeContainsPattern, BeforeDateTimePattern, AfterDateTimePattern, EqualToDateTimePattern, AnythingPattern?, AbsentPattern, LogicalAnd, LogicalOr, PathTemplatePattern.
Proposals for schema improvement
request-pattern / urlPathTemplate
urlPathTemplate:
type: string
description: The path template to match against. Only one of url, urlPattern, urlPath, urlPathPattern or urlPathTemplate may be specified.
request-pattern / formParameters
formParameters:
type: object
description: 'Form parameter patterns to match against in the <key>: { "<predicate>": "<value>" } form'
request-pattern / pathParameters
pathParameters:
type: object
description: 'Path variables with matchers for the parameters specified in urlPathTemplate.'
JSON schema gaps
As per https://github.com/wiremock/wiremock/issues/2258 and https://github.com/wiremock/wiremock/pull/2253 this issue attempts to collect missing JSON schema properties for the WireMock Java Admin API, and a few improvement candidates/questions, and where possible, with proposed solutions at the end of this issue.
Collection of schema properties
urlPathTemplate
url*
properties must also mention this property.formParameters
pathParameters
customMatcher
name
property is mandatory, it could be marked as such.jsonBody
com.fasterxml.jackson.databind.JsonNode
,it is a question if the property type can also be an
array
, and any other type besidesobject
.chunkedDribbleDelay
proxyUrlPrefixToRemove
fixed
DelayDistribution
FixedDelayDistribution
mappings
possibleStates
clientIp
browserProxyRequest
loggedDate
bodyAsBase64
multiparts
protocol
targetBaseUrl
filters
outputFormat
SnapshotOutputFormatter
enablePlaceholders
placeholderOpeningDelimiterRegex
placeholderClosingDelimiterRegex
exemptedComparisons
StringValuePatternJsonDeserializer
StringValuePatternJsonDeserializer
ignoreArrayOrder
andignoreExtraElements
properties.xPathNamespaces
StringValuePatternJsonDeserializer
ignoreArrayOrder
ignoreExtraElements
StringValuePatternJsonDeserializer
StringValuePatternJsonDeserializer
equalTo
property should be string instead of boolean.Additionally in content-pattern, sections are missing for the following classes:
MatchesJsonSchemaPattern
,NotPattern
,NegativeContainsPattern
,BeforeDateTimePattern
,AfterDateTimePattern
,EqualToDateTimePattern
,AnythingPattern
?,AbsentPattern
,LogicalAnd
,LogicalOr
,PathTemplatePattern
.Proposals for schema improvement
request-pattern / urlPathTemplate
request-pattern / formParameters
request-pattern / pathParameters
response-definition / chunkedDribbleDelay
response-definition / proxyUrlPrefixToRemove
delay-distribution / fixed
scenario / mappings
record-spec / targetBaseUrl
record-spec / outputFormat