[jira] [Updated] (AVRO-1284) Python: validation should be a method of Schema objects

2020-06-01 Thread Jira


 [ 
https://issues.apache.org/jira/browse/AVRO-1284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ismaël Mejía updated AVRO-1284:
---
Fix Version/s: (was: 1.10.0)

> Python: validation should be a method of Schema objects
> ---
>
> Key: AVRO-1284
> URL: https://issues.apache.org/jira/browse/AVRO-1284
> Project: Apache Avro
>  Issue Type: Improvement
>  Components: python
>Reporter: Jeremy Kahn
>Assignee: Jeremy Kahn
>Priority: Minor
>  Labels: patch
> Attachments: validation-as-method-backwards-compatible.patch, 
> validation-as-method.patch
>
>
> In Python, validation of a datum by the schema was done in 
> {{avro.io.validate}} function.
> The {{avro.io.validate}} function is a complex, recursively-called switch 
> statement.
> Instead of calling a two-argument {{avro.io.validate}} with a Schema object 
> and a datum, it is easier to understand and extend if they are one-argument 
> methods on the schema.
> I (Jeremy) have written a patch that implements {{validate}} methods on 
> Schema objects. This patch will form the prerequisite for AVRO-1265 (see 
> "easier to extend" above).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Updated] (AVRO-1284) Python: validation should be a method of Schema objects

2019-02-18 Thread Fokko Driesprong (JIRA)


 [ 
https://issues.apache.org/jira/browse/AVRO-1284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Fokko Driesprong updated AVRO-1284:
---
Fix Version/s: (was: 1.9.0)
   1.10.0

> Python: validation should be a method of Schema objects
> ---
>
> Key: AVRO-1284
> URL: https://issues.apache.org/jira/browse/AVRO-1284
> Project: Apache Avro
>  Issue Type: Improvement
>  Components: python
>Reporter: Jeremy Kahn
>Assignee: Jeremy Kahn
>Priority: Minor
>  Labels: patch
> Fix For: 1.10.0
>
> Attachments: validation-as-method-backwards-compatible.patch, 
> validation-as-method.patch
>
>
> In Python, validation of a datum by the schema was done in 
> {{avro.io.validate}} function.
> The {{avro.io.validate}} function is a complex, recursively-called switch 
> statement.
> Instead of calling a two-argument {{avro.io.validate}} with a Schema object 
> and a datum, it is easier to understand and extend if they are one-argument 
> methods on the schema.
> I (Jeremy) have written a patch that implements {{validate}} methods on 
> Schema objects. This patch will form the prerequisite for AVRO-1265 (see 
> "easier to extend" above).



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)


[jira] [Updated] (AVRO-1284) Python: validation should be a method of Schema objects

2013-03-30 Thread Jeremy Kahn (JIRA)

 [ 
https://issues.apache.org/jira/browse/AVRO-1284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jeremy Kahn updated AVRO-1284:
--

Labels: patch  (was: )

 Python: validation should be a method of Schema objects
 ---

 Key: AVRO-1284
 URL: https://issues.apache.org/jira/browse/AVRO-1284
 Project: Avro
  Issue Type: Improvement
  Components: python
Reporter: Jeremy Kahn
Assignee: Jeremy Kahn
Priority: Minor
  Labels: patch
 Fix For: 1.7.5

 Attachments: validation-as-method-backwards-compatible.patch, 
 validation-as-method.patch


 In Python, validation of a datum by the schema was done in 
 {{avro.io.validate}} function.
 The {{avro.io.validate}} function is a complex, recursively-called switch 
 statement.
 Instead of calling a two-argument {{avro.io.validate}} with a Schema object 
 and a datum, it is easier to understand and extend if they are one-argument 
 methods on the schema.
 I (Jeremy) have written a patch that implements {{validate}} methods on 
 Schema objects. This patch will form the prerequisite for AVRO-1265 (see 
 easier to extend above).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (AVRO-1284) Python: validation should be a method of Schema objects

2013-03-30 Thread Jeremy Kahn (JIRA)

 [ 
https://issues.apache.org/jira/browse/AVRO-1284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jeremy Kahn updated AVRO-1284:
--

Status: Patch Available  (was: Open)

Seems to be a working fix. tests pass.

 Python: validation should be a method of Schema objects
 ---

 Key: AVRO-1284
 URL: https://issues.apache.org/jira/browse/AVRO-1284
 Project: Avro
  Issue Type: Improvement
  Components: python
Reporter: Jeremy Kahn
Assignee: Jeremy Kahn
Priority: Minor
  Labels: patch
 Fix For: 1.7.5

 Attachments: validation-as-method-backwards-compatible.patch, 
 validation-as-method.patch


 In Python, validation of a datum by the schema was done in 
 {{avro.io.validate}} function.
 The {{avro.io.validate}} function is a complex, recursively-called switch 
 statement.
 Instead of calling a two-argument {{avro.io.validate}} with a Schema object 
 and a datum, it is easier to understand and extend if they are one-argument 
 methods on the schema.
 I (Jeremy) have written a patch that implements {{validate}} methods on 
 Schema objects. This patch will form the prerequisite for AVRO-1265 (see 
 easier to extend above).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (AVRO-1284) Python: validation should be a method of Schema objects

2013-03-25 Thread Jeremy Kahn (JIRA)

 [ 
https://issues.apache.org/jira/browse/AVRO-1284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jeremy Kahn updated AVRO-1284:
--

Attachment: validation-as-method.patch

 Python: validation should be a method of Schema objects
 ---

 Key: AVRO-1284
 URL: https://issues.apache.org/jira/browse/AVRO-1284
 Project: Avro
  Issue Type: Improvement
  Components: python
Reporter: Jeremy Kahn
Assignee: Jeremy Kahn
Priority: Minor
 Fix For: 1.7.5

 Attachments: validation-as-method.patch


 In Python, validation of a datum by the schema was done in 
 {{avro.io.validate}} function.
 The {{avro.io.validate}} function is a complex, recursively-called switch 
 statement.
 Instead of calling a two-argument {{avro.io.validate}} with a Schema object 
 and a datum, it is easier to understand and extend if they are one-argument 
 methods on the schema.
 I (Jeremy) have written a patch that implements {{validate}} methods on 
 Schema objects. This patch will form the prerequisite for AVRO-1265 (see 
 easier to extend above).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


[jira] [Updated] (AVRO-1284) Python: validation should be a method of Schema objects

2013-03-25 Thread Jeremy Kahn (JIRA)

 [ 
https://issues.apache.org/jira/browse/AVRO-1284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jeremy Kahn updated AVRO-1284:
--

Attachment: validation-as-method-backwards-compatible.patch

The {{validation-as-method-backwards-compatible}} patch maintains the 
functional behavior of {{avro.io.validate}} by calling the method indirectly, 
in case users are calling {{avro.io.validate}}.

Prefer this patch to the simpler {{validation-as-method}} patch.

 Python: validation should be a method of Schema objects
 ---

 Key: AVRO-1284
 URL: https://issues.apache.org/jira/browse/AVRO-1284
 Project: Avro
  Issue Type: Improvement
  Components: python
Reporter: Jeremy Kahn
Assignee: Jeremy Kahn
Priority: Minor
 Fix For: 1.7.5

 Attachments: validation-as-method-backwards-compatible.patch, 
 validation-as-method.patch


 In Python, validation of a datum by the schema was done in 
 {{avro.io.validate}} function.
 The {{avro.io.validate}} function is a complex, recursively-called switch 
 statement.
 Instead of calling a two-argument {{avro.io.validate}} with a Schema object 
 and a datum, it is easier to understand and extend if they are one-argument 
 methods on the schema.
 I (Jeremy) have written a patch that implements {{validate}} methods on 
 Schema objects. This patch will form the prerequisite for AVRO-1265 (see 
 easier to extend above).

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira