From 69cb115c8bde2fe33e7611681dd9b306eac790c7 Mon Sep 17 00:00:00 2001 From: Andrew Gauld Date: Tue, 13 Aug 2019 20:21:30 +0000 Subject: Fix Format class to say description is optional Issue-ID: DCAEGEN2-1723 Change-Id: I0d279b3b9e7c63a3299da0366b89e8f7ab004edf Signed-off-by: Andrew Gauld --- dcae-cli/ChangeLog.md | 4 ++++ dcae-cli/dcae_cli/_version.py | 2 +- dcae-cli/dcae_cli/catalog/mock/tables.py | 2 +- dcae-cli/pom.xml | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/dcae-cli/ChangeLog.md b/dcae-cli/ChangeLog.md index ffeaf80..707e9a8 100644 --- a/dcae-cli/ChangeLog.md +++ b/dcae-cli/ChangeLog.md @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [2.11.3] + +* Fix Format class definition of "description" to match JSON schema + ## [2.11.2] * Upgrade to use docker 4.x.x from docker-py 1.x.x diff --git a/dcae-cli/dcae_cli/_version.py b/dcae-cli/dcae_cli/_version.py index 34e254c..5f3d51b 100644 --- a/dcae-cli/dcae_cli/_version.py +++ b/dcae-cli/dcae_cli/_version.py @@ -19,4 +19,4 @@ # ECOMP is a trademark and service mark of AT&T Intellectual Property. # -*- coding: utf-8 -*- -__version__ = "2.11.2" +__version__ = "2.11.3" diff --git a/dcae-cli/dcae_cli/catalog/mock/tables.py b/dcae-cli/dcae_cli/catalog/mock/tables.py index 8278190..0e10b79 100644 --- a/dcae-cli/dcae_cli/catalog/mock/tables.py +++ b/dcae-cli/dcae_cli/catalog/mock/tables.py @@ -118,7 +118,7 @@ class Format(Base): name = Column(String(), nullable=False) version = Column(String(), nullable=False) - description = Column(Text(), nullable=False) + description = Column(Text(), nullable=True) spec = Column(Text(), nullable=False) when_added = Column(DateTime, default=datetime_now, nullable=True) diff --git a/dcae-cli/pom.xml b/dcae-cli/pom.xml index 3845c47..bfc1b6f 100644 --- a/dcae-cli/pom.xml +++ b/dcae-cli/pom.xml @@ -27,7 +27,7 @@ limitations under the License. org.onap.dcaegen2.platform.cli dcae-cli dcaegen2-platform-cli-dcae-cli - 2.11.2 + 2.11.3 http://maven.apache.org UTF-8 -- cgit 1.2.3-korg