commit c26a43b69849e780a1ac3a68b5f6d4da520d7362
Author: Thomas Spatzier <email address hidden>
Date: Wed Jan 15 23:15:52 2014 +0100
Move param format for template-validate to API
This patch is second in a series of patches to unify the code for
property and parameter validation based on a common Schema class.
The current patch moves the formating of parameters during the
template-validate API into a new function in the API layer.
Previously, only a dictionary of internal parameter schema
objects was returned, which meant a close coupling between
the engine's internal data structures and the API expected
format.
With the new format function in the API, we are able to better
separate internal data from API formats and can maintain API
compatibility when refactoring inside the engine.
In a subsequent patch, we can thus move to a consolidated code
base for parameter schema validation (based on the common Schema
class) and don't have to distinguish between CFN and HOT inside
the engine.
Reviewed: https:/ /review. openstack. org/67171 /git.openstack. org/cgit/ openstack/ heat/commit/ ?id=c26a43b6984 9e780a1ac3a68b5 f6d4da520d7362
Committed: https:/
Submitter: Jenkins
Branch: master
commit c26a43b69849e78 0a1ac3a68b5f6d4 da520d7362
Author: Thomas Spatzier <email address hidden>
Date: Wed Jan 15 23:15:52 2014 +0100
Move param format for template-validate to API
This patch is second in a series of patches to unify the code for
property and parameter validation based on a common Schema class.
The current patch moves the formating of parameters during the validate API into a new function in the API layer.
template-
Previously, only a dictionary of internal parameter schema
objects was returned, which meant a close coupling between
the engine's internal data structures and the API expected
format.
With the new format function in the API, we are able to better
separate internal data from API formats and can maintain API
compatibility when refactoring inside the engine.
In a subsequent patch, we can thus move to a consolidated code
base for parameter schema validation (based on the common Schema
class) and don't have to distinguish between CFN and HOT inside
the engine.
Change-Id: I302e58906a0b53 0d967cbae808d0c f6b2fdcb3bc code-consolidat ion
Partial-Bug: #1230229
Implements: blueprint schema-