Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 602042004F1 for ; Wed, 30 Aug 2017 16:07:19 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5E78D1690B9; Wed, 30 Aug 2017 14:07:19 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id A58151690B7 for ; Wed, 30 Aug 2017 16:07:18 +0200 (CEST) Received: (qmail 9331 invoked by uid 500); 30 Aug 2017 14:07:16 -0000 Mailing-List: contact dev-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list dev@cxf.apache.org Received: (qmail 9319 invoked by uid 99); 30 Aug 2017 14:07:16 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Aug 2017 14:07:16 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id F249A182973 for ; Wed, 30 Aug 2017 14:07:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.379 X-Spam-Level: X-Spam-Status: No, score=0.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id bdNtNluZIFEI for ; Wed, 30 Aug 2017 14:07:15 +0000 (UTC) Received: from mail-wm0-f43.google.com (mail-wm0-f43.google.com [74.125.82.43]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id B78925F6BF for ; Wed, 30 Aug 2017 14:07:14 +0000 (UTC) Received: by mail-wm0-f43.google.com with SMTP id a80so10776378wma.0 for ; Wed, 30 Aug 2017 07:07:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=EjkKhWiQlueqNvmfDJmriteveMmt8DT1hj+wcaCvEww=; b=kvwpSv2+bLhunYae7CuFmodi5qffxpczb4qafyxUp54WyA/f1FNemleFoE8/W/8fUX 0vGJHNZOINf8GZH/q+srgIQxWjXL4gtv/R01f8YhY5/capt4Ws8u2YHjRRGqzRCYf2vY fYwpHQOTqP5TfN4IFURpe7rB9nIipdaghqcYsQInCloE6zjH/M2Dv8Sn0Dkslq7zcvdG qiNcyid2s1MJ4LjKnXrwHg7A33VQJOunJqOTBffWikBBwNWoLpVRpNPImKP8ASnn9QFe XcHjY2t2rRn3PyfVkfeLPtZJwg0IWMR90UXlPiuXUljQQKJ4ukq+/hS6ReW/e4v0vqA9 lqjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=EjkKhWiQlueqNvmfDJmriteveMmt8DT1hj+wcaCvEww=; b=gvF7Zh1w3E1FMMD75ZIGIt95IRMkdBgaEqEUslMyNh/GBcT6O3JJhI+xmPHAZcNcWR 9D7p2JQgQMyC0LC9VLUC1C87/5dpKBPfH6+cja6HFlSdy93Za06WSOjb9gUUWn/dXDWk jNxerPZhlWQsvCvL1Gc1Ak+nAAvlGFIHkAPopuoDAbBTW9Z08MqAouy/bVtZoMDxFKck tXOcQX5RYQp1uq6ffJ3K+4YC6z7gdC3rypceLwK50E9tPp7jEGwNaET3iZggAKmckQMX f6v3LzS3kThY9++88/RO+a1nPXte3sWLiNd0xpVHaA8+Okh2skz+l1UFUPVRXj3EwVWh VhHw== X-Gm-Message-State: AHYfb5jyAy58rD38UM20MNwV7O9vuZHCGXxJUcCPBZg40NUAA3otssl8 /3naURf734Ec8gbTCvs= X-Received: by 10.80.154.131 with SMTP id p3mr1829826edb.249.1504102033467; Wed, 30 Aug 2017 07:07:13 -0700 (PDT) Received: from [192.168.2.5] (188-141-10-56.dynamic.upc.ie. [188.141.10.56]) by smtp.googlemail.com with ESMTPSA id b48sm2581168ede.15.2017.08.30.07.07.12 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Aug 2017 07:07:12 -0700 (PDT) Subject: Re: cxf git commit: improved Swagger description To: dev@cxf.apache.org References: <7ee0b2f9-9c8f-f0e9-ab3d-7c0a975cc914@apache.org> From: Sergey Beryozkin Message-ID: <718739a6-38b3-a544-7529-4a144906d7b6@gmail.com> Date: Wed, 30 Aug 2017 15:07:06 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: <7ee0b2f9-9c8f-f0e9-ab3d-7c0a975cc914@apache.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit archived-at: Wed, 30 Aug 2017 14:07:19 -0000 Hi Dennis The real issue here is these default values for a license. As I said it makes it tricky to figure out if the license was set or not... I'll just introduce an internal property to track the setLicense call and make sure that setLicense(null) works as before in 3.1.x. Let me do it first. After that, do we want to keep the default license value/url in 3.2.0 ? Cheers, Sergey On 30/08/17 14:20, Dennis Kieselhorst wrote: > Hi Sergey! > >> Before my update they were set to Apache values by default, thus it was >> impossible to detect if there was a need to check the properties for the >> default values or not. >> Now with the code I did, if no license is needs, it should be enough to >> set the license value only to "", no need to set the URL to null too. >> >> Will it work for you if we update the code to check if the license/url >> are empty strings then assume they are null (works with the properties >> too, "license=") ? I've just updated the code accordingly > > Before the update it was empty, when > swagger2Feature.setLicense(null); > was called. > > Now this needs to be changed to: > swagger2Feature.setLicense(""); > > Although I like the Apache license I would not apply any default. But > the current code works for me and this kind of change should be ok for > 3.2.0. > > Cheers > Dennis >