Update schemas.py

minor language
This commit is contained in:
Hossein Shafagh 2020-10-14 09:48:40 -07:00 committed by GitHub
parent 97cf54433b
commit 894e35b4e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -340,8 +340,8 @@ class CertificateOutputSchema(LemurOutputSchema):
@post_dump
def handle_subject_details(self, data):
# Remove subject details if authority is CAB compliant. The code will use default set of values in that case.
# If CAB compliance of an authority is unknown (None), it is safe to fallback to default values. Thus below
# Remove subject details if authority is CA/Browser Forum compliant. The code will use default set of values in that case.
# If CA/Browser Forum compliance of an authority is unknown (None), it is safe to fallback to default values. Thus below
# condition checks for 'not False' ==> 'True or None'
if data.get("authority"):
is_cab_compliant = data.get("authority").get("isCabCompliant")