Sync docs from master to gh-pages
This commit is contained in:
@@ -101,14 +101,15 @@ $(addBlockSwitches);
|
||||
<li><a href="#contract-groovy">1.1. Contract DSL in Groovy</a></li>
|
||||
<li><a href="#contract-java">1.2. Contract DSL in Java</a></li>
|
||||
<li><a href="#contract-kotlin">1.3. Contract DSL in Kotlin</a></li>
|
||||
<li><a href="#contract-limitations">1.4. Limitations</a></li>
|
||||
<li><a href="#contract-common-top-elements">1.5. Common Top-Level Elements</a>
|
||||
<li><a href="#contract-yml">1.4. Contract DSL in YML</a></li>
|
||||
<li><a href="#contract-limitations">1.5. Limitations</a></li>
|
||||
<li><a href="#contract-common-top-elements">1.6. Common Top-Level Elements</a>
|
||||
<ul class="sectlevel3">
|
||||
<li><a href="#contract-dsl-description">1.5.1. Description</a></li>
|
||||
<li><a href="#contract-dsl-name">1.5.2. Name</a></li>
|
||||
<li><a href="#contract-dsl-ignoring-contracts">1.5.3. Ignoring Contracts</a></li>
|
||||
<li><a href="#contract-dsl-in-progress">1.5.4. Contracts in Progress</a></li>
|
||||
<li><a href="#contract-dsl-passing-values-from-files">1.5.5. Passing Values from Files</a></li>
|
||||
<li><a href="#contract-dsl-description">1.6.1. Description</a></li>
|
||||
<li><a href="#contract-dsl-name">1.6.2. Name</a></li>
|
||||
<li><a href="#contract-dsl-ignoring-contracts">1.6.3. Ignoring Contracts</a></li>
|
||||
<li><a href="#contract-dsl-in-progress">1.6.4. Contracts in Progress</a></li>
|
||||
<li><a href="#contract-dsl-passing-values-from-files">1.6.5. Passing Values from Files</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -770,7 +771,13 @@ You can also provide an import to the <code>contract</code> function (<code>impo
|
||||
</div>
|
||||
</div>
|
||||
<div class="sect2">
|
||||
<h3 id="contract-limitations"><a class="anchor" href="#contract-limitations"></a><a class="link" href="#contract-limitations">1.4. Limitations</a></h3>
|
||||
<h3 id="contract-yml"><a class="anchor" href="#contract-yml"></a><a class="link" href="#contract-yml">1.4. Contract DSL in YML</a></h3>
|
||||
<div class="paragraph">
|
||||
<p>In order to see a schema of a YAML contract, you can check out the <a href="yml-schema.html">YML Schema</a> page.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sect2">
|
||||
<h3 id="contract-limitations"><a class="anchor" href="#contract-limitations"></a><a class="link" href="#contract-limitations">1.5. Limitations</a></h3>
|
||||
<div class="admonitionblock warning">
|
||||
<table>
|
||||
<tr>
|
||||
@@ -802,7 +809,7 @@ is why you should use the Groovy Map notation.
|
||||
</div>
|
||||
</div>
|
||||
<div class="sect2">
|
||||
<h3 id="contract-common-top-elements"><a class="anchor" href="#contract-common-top-elements"></a><a class="link" href="#contract-common-top-elements">1.5. Common Top-Level Elements</a></h3>
|
||||
<h3 id="contract-common-top-elements"><a class="anchor" href="#contract-common-top-elements"></a><a class="link" href="#contract-common-top-elements">1.6. Common Top-Level Elements</a></h3>
|
||||
<div class="paragraph">
|
||||
<p>The following sections describe the most common top-level elements:</p>
|
||||
</div>
|
||||
@@ -826,7 +833,7 @@ is why you should use the Groovy Map notation.
|
||||
</ul>
|
||||
</div>
|
||||
<div class="sect3">
|
||||
<h4 id="contract-dsl-description"><a class="anchor" href="#contract-dsl-description"></a><a class="link" href="#contract-dsl-description">1.5.1. Description</a></h4>
|
||||
<h4 id="contract-dsl-description"><a class="anchor" href="#contract-dsl-description"></a><a class="link" href="#contract-dsl-description">1.6.1. Description</a></h4>
|
||||
<div class="paragraph">
|
||||
<p>You can add a <code>description</code> to your contract. The description is arbitrary text. The
|
||||
following code shows an example:</p>
|
||||
@@ -929,7 +936,7 @@ then:
|
||||
</div>
|
||||
</div>
|
||||
<div class="sect3">
|
||||
<h4 id="contract-dsl-name"><a class="anchor" href="#contract-dsl-name"></a><a class="link" href="#contract-dsl-name">1.5.2. Name</a></h4>
|
||||
<h4 id="contract-dsl-name"><a class="anchor" href="#contract-dsl-name"></a><a class="link" href="#contract-dsl-name">1.6.2. Name</a></h4>
|
||||
<div class="paragraph">
|
||||
<p>You can provide a name for your contract. Assume that you provided the following name:
|
||||
<code>should register a user</code>. If you do so, the name of the autogenerated test is
|
||||
@@ -990,7 +997,7 @@ override each other.
|
||||
</div>
|
||||
</div>
|
||||
<div class="sect3">
|
||||
<h4 id="contract-dsl-ignoring-contracts"><a class="anchor" href="#contract-dsl-ignoring-contracts"></a><a class="link" href="#contract-dsl-ignoring-contracts">1.5.3. Ignoring Contracts</a></h4>
|
||||
<h4 id="contract-dsl-ignoring-contracts"><a class="anchor" href="#contract-dsl-ignoring-contracts"></a><a class="link" href="#contract-dsl-ignoring-contracts">1.6.3. Ignoring Contracts</a></h4>
|
||||
<div class="paragraph">
|
||||
<p>If you want to ignore a contract, you can either set a value for ignored contracts in the
|
||||
plugin configuration or set the <code>ignored</code> property on the contract itself. The following
|
||||
@@ -1032,7 +1039,7 @@ example shows how to do so:</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sect3">
|
||||
<h4 id="contract-dsl-in-progress"><a class="anchor" href="#contract-dsl-in-progress"></a><a class="link" href="#contract-dsl-in-progress">1.5.4. Contracts in Progress</a></h4>
|
||||
<h4 id="contract-dsl-in-progress"><a class="anchor" href="#contract-dsl-in-progress"></a><a class="link" href="#contract-dsl-in-progress">1.6.4. Contracts in Progress</a></h4>
|
||||
<div class="paragraph">
|
||||
<p>A contract in progress will not generate tests on the producer side, but will allow generation of stubs.</p>
|
||||
</div>
|
||||
@@ -1091,7 +1098,7 @@ example shows how to do so:</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sect3">
|
||||
<h4 id="contract-dsl-passing-values-from-files"><a class="anchor" href="#contract-dsl-passing-values-from-files"></a><a class="link" href="#contract-dsl-passing-values-from-files">1.5.5. Passing Values from Files</a></h4>
|
||||
<h4 id="contract-dsl-passing-values-from-files"><a class="anchor" href="#contract-dsl-passing-values-from-files"></a><a class="link" href="#contract-dsl-passing-values-from-files">1.6.5. Passing Values from Files</a></h4>
|
||||
<div class="paragraph">
|
||||
<p>Starting with version <code>1.2.0</code>, you can pass values from files. Assume that you have the
|
||||
following resources in your project:</p>
|
||||
|
||||
127
reference/html/yml-schema.html
Normal file
127
reference/html/yml-schema.html
Normal file
@@ -0,0 +1,127 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<!--[if IE]><meta http-equiv="X-UA-Compatible" content="IE=edge"><![endif]-->
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="generator" content="Asciidoctor 1.5.8">
|
||||
<title>YML Schema</title>
|
||||
<link rel="stylesheet" href="css/spring.css">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
|
||||
|
||||
<style>
|
||||
.hidden {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.switch {
|
||||
border-width: 1px 1px 0 1px;
|
||||
border-style: solid;
|
||||
border-color: #7a2518;
|
||||
display: inline-block;
|
||||
}
|
||||
|
||||
.switch--item {
|
||||
padding: 10px;
|
||||
background-color: #ffffff;
|
||||
color: #7a2518;
|
||||
display: inline-block;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.switch--item:not(:first-child) {
|
||||
border-width: 0 0 0 1px;
|
||||
border-style: solid;
|
||||
border-color: #7a2518;
|
||||
}
|
||||
|
||||
.switch--item.selected {
|
||||
background-color: #7a2519;
|
||||
color: #ffffff;
|
||||
}
|
||||
</style>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/zepto/1.2.0/zepto.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
function addBlockSwitches() {
|
||||
$('.primary').each(function() {
|
||||
primary = $(this);
|
||||
createSwitchItem(primary, createBlockSwitch(primary)).item.addClass("selected");
|
||||
primary.children('.title').remove();
|
||||
});
|
||||
$('.secondary').each(function(idx, node) {
|
||||
secondary = $(node);
|
||||
primary = findPrimary(secondary);
|
||||
switchItem = createSwitchItem(secondary, primary.children('.switch'));
|
||||
switchItem.content.addClass('hidden');
|
||||
findPrimary(secondary).append(switchItem.content);
|
||||
secondary.remove();
|
||||
});
|
||||
}
|
||||
|
||||
function createBlockSwitch(primary) {
|
||||
blockSwitch = $('<div class="switch"></div>');
|
||||
primary.prepend(blockSwitch);
|
||||
return blockSwitch;
|
||||
}
|
||||
|
||||
function findPrimary(secondary) {
|
||||
candidate = secondary.prev();
|
||||
while (!candidate.is('.primary')) {
|
||||
candidate = candidate.prev();
|
||||
}
|
||||
return candidate;
|
||||
}
|
||||
|
||||
function createSwitchItem(block, blockSwitch) {
|
||||
blockName = block.children('.title').text();
|
||||
content = block.children('.content').first().append(block.next('.colist'));
|
||||
item = $('<div class="switch--item">' + blockName + '</div>');
|
||||
item.on('click', '', content, function(e) {
|
||||
$(this).addClass('selected');
|
||||
$(this).siblings().removeClass('selected');
|
||||
e.data.siblings('.content').addClass('hidden');
|
||||
e.data.removeClass('hidden');
|
||||
});
|
||||
blockSwitch.append(item);
|
||||
return {'item': item, 'content': content};
|
||||
}
|
||||
|
||||
$(addBlockSwitches);
|
||||
</script>
|
||||
|
||||
</head>
|
||||
<body class="book toc2 toc-left">
|
||||
<div id="header">
|
||||
<div id="toc" class="toc2">
|
||||
<div id="toctitle">Table of Contents</div>
|
||||
<ul class="sectlevel1">
|
||||
<li><a href="#yml-schema">YML Schema</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
<div id="content">
|
||||
<div class="sect1">
|
||||
<h2 id="yml-schema"><a class="link" href="#yml-schema">YML Schema</a></h2>
|
||||
<div class="sectionbody">
|
||||
<div class="paragraph">
|
||||
<p>Below you can find a JSON schema definition of a YAML contract.</p>
|
||||
</div>
|
||||
<div class="exampleblock">
|
||||
<div class="content">
|
||||
<div class="listingblock">
|
||||
<div class="content">
|
||||
<pre class="highlightjs highlight"><code class="language-json hljs" data-lang="json">Unresolved directive in yml-schema.adoc - include::/opt/jenkins/data/workspace/spring-cloud-contract-master-ci/docs/target/contract_schema.json[indent=0]</code></pre>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript" src="js/tocbot/tocbot.min.js"></script>
|
||||
<script type="text/javascript" src="js/toc.js"></script>
|
||||
<link rel="stylesheet" href="js/highlight/styles/atom-one-dark-reasonable.min.css">
|
||||
<script src="js/highlight/highlight.min.js"></script>
|
||||
<script>hljs.initHighlighting()</script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -218,8 +218,9 @@ $(addBlockSwitches);
|
||||
<li><a href="#contract-groovy">4.1.1. Contract DSL in Groovy</a></li>
|
||||
<li><a href="#contract-java">4.1.2. Contract DSL in Java</a></li>
|
||||
<li><a href="#contract-kotlin">4.1.3. Contract DSL in Kotlin</a></li>
|
||||
<li><a href="#contract-limitations">4.1.4. Limitations</a></li>
|
||||
<li><a href="#contract-common-top-elements">4.1.5. Common Top-Level Elements</a>
|
||||
<li><a href="#contract-yml">4.1.4. Contract DSL in YML</a></li>
|
||||
<li><a href="#contract-limitations">4.1.5. Limitations</a></li>
|
||||
<li><a href="#contract-common-top-elements">4.1.6. Common Top-Level Elements</a>
|
||||
<ul class="sectlevel4">
|
||||
<li><a href="#contract-dsl-description">Description</a></li>
|
||||
<li><a href="#contract-dsl-name">Name</a></li>
|
||||
@@ -4662,7 +4663,13 @@ You can also provide an import to the <code>contract</code> function (<code>impo
|
||||
</div>
|
||||
</div>
|
||||
<div class="sect3">
|
||||
<h4 id="contract-limitations"><a class="anchor" href="#contract-limitations"></a><a class="link" href="#contract-limitations">4.1.4. Limitations</a></h4>
|
||||
<h4 id="contract-yml"><a class="anchor" href="#contract-yml"></a><a class="link" href="#contract-yml">4.1.4. Contract DSL in YML</a></h4>
|
||||
<div class="paragraph">
|
||||
<p>In order to see a schema of a YAML contract, you can check out the <a href="yml-schema.html">YML Schema</a> page.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="sect3">
|
||||
<h4 id="contract-limitations"><a class="anchor" href="#contract-limitations"></a><a class="link" href="#contract-limitations">4.1.5. Limitations</a></h4>
|
||||
<div class="admonitionblock warning">
|
||||
<table>
|
||||
<tr>
|
||||
@@ -4694,7 +4701,7 @@ is why you should use the Groovy Map notation.
|
||||
</div>
|
||||
</div>
|
||||
<div class="sect3">
|
||||
<h4 id="contract-common-top-elements"><a class="anchor" href="#contract-common-top-elements"></a><a class="link" href="#contract-common-top-elements">4.1.5. Common Top-Level Elements</a></h4>
|
||||
<h4 id="contract-common-top-elements"><a class="anchor" href="#contract-common-top-elements"></a><a class="link" href="#contract-common-top-elements">4.1.6. Common Top-Level Elements</a></h4>
|
||||
<div class="paragraph">
|
||||
<p>The following sections describe the most common top-level elements:</p>
|
||||
</div>
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user