[
https://issues.apache.org/jira/browse/NIFI-12610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17806919#comment-17806919
]
ASF subversion and git services commented on NIFI-12610:
--------------------------------------------------------
Commit 1e27cb907ae24125f74d6d6855063ba1f5377c43 in nifi's branch
refs/heads/main from Joe Gresock
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=1e27cb907a ]
NIFI-12610: Corrected default_value example in Python Developer guide
This closes #8245
Signed-off-by: David Handermann <[email protected]>
> Typo for 'default_value' in Python developer documentation
> ----------------------------------------------------------
>
> Key: NIFI-12610
> URL: https://issues.apache.org/jira/browse/NIFI-12610
> Project: Apache NiFi
> Issue Type: Bug
> Components: Documentation & Website
> Affects Versions: 2.0.0-M1
> Reporter: Joe Gresock
> Assignee: Joe Gresock
> Priority: Trivial
> Fix For: 2.0.0
>
> Time Spent: 20m
> Remaining Estimate: 0h
>
> In the Python developer guide, the section on creating a property descriptor
> has a typo: defaultValue should actually be default_value. The result of
> pasting this example in a Python processor is that the property descriptors
> will not load.
> {code:java}
> numspaces = PropertyDescriptor(name="Number of Spaces",
> description="Number of spaces to use for pretty-printing",
> validators=[StandardValidators.POSITIVE_INTEGER_VALIDATOR],
> defaultValue="4",
> required=True)
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)